comparison Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp @ 1761:28755e42c007

Fix issue #197 (Support for passing credentials with all HTTP requests)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 May 2021 11:51:53 +0200
parents 9ac2a65d4172
children 39673d351ef2
comparison
equal deleted inserted replaced
1760:e38b9875a969 1761:28755e42c007
2991 source_.SetDicomWebThroughOrthancSource(serverName); 2991 source_.SetDicomWebThroughOrthancSource(serverName);
2992 source_.SetDicomWebRendered(hasRendered != 0); 2992 source_.SetDicomWebRendered(hasRendered != 0);
2993 } 2993 }
2994 EXTERN_CATCH_EXCEPTIONS; 2994 EXTERN_CATCH_EXCEPTIONS;
2995 } 2995 }
2996
2997
2998 EMSCRIPTEN_KEEPALIVE
2999 void AddHttpHeader(const char* header,
3000 const char* value)
3001 {
3002 try
3003 {
3004 source_.AddHttpHeader(header, value);
3005 }
3006 EXTERN_CATCH_EXCEPTIONS;
3007 }
2996 3008
2997 3009
2998 EMSCRIPTEN_KEEPALIVE 3010 EMSCRIPTEN_KEEPALIVE
2999 void SetDicomCacheSize(int sizeMB) 3011 void SetDicomCacheSize(int sizeMB)
3000 { 3012 {