Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancHttpHandler.cpp @ 4330:a01b1c9cbef4
moving generic type definitions from IHttpHandler to HttpToolbox
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Nov 2020 14:39:10 +0100 |
parents | 05b8fd21089c |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4329:9dc0e42f868b | 4330:a01b1c9cbef4 |
---|---|
44 RequestOrigin origin, | 44 RequestOrigin origin, |
45 const char* remoteIp, | 45 const char* remoteIp, |
46 const char* username, | 46 const char* username, |
47 HttpMethod method, | 47 HttpMethod method, |
48 const UriComponents& uri, | 48 const UriComponents& uri, |
49 const Arguments& headers) | 49 const HttpToolbox::Arguments& headers) |
50 { | 50 { |
51 if (method != HttpMethod_Post && | 51 if (method != HttpMethod_Post && |
52 method != HttpMethod_Put) | 52 method != HttpMethod_Put) |
53 { | 53 { |
54 throw OrthancException(ErrorCode_InternalError); | 54 throw OrthancException(ErrorCode_InternalError); |
76 RequestOrigin origin, | 76 RequestOrigin origin, |
77 const char* remoteIp, | 77 const char* remoteIp, |
78 const char* username, | 78 const char* username, |
79 HttpMethod method, | 79 HttpMethod method, |
80 const UriComponents& uri, | 80 const UriComponents& uri, |
81 const Arguments& headers, | 81 const HttpToolbox::Arguments& headers, |
82 const GetArguments& getArguments, | 82 const HttpToolbox::GetArguments& getArguments, |
83 const void* bodyData, | 83 const void* bodyData, |
84 size_t bodySize) | 84 size_t bodySize) |
85 { | 85 { |
86 for (Handlers::const_iterator it = handlers_.begin(); it != handlers_.end(); ++it) | 86 for (Handlers::const_iterator it = handlers_.begin(); it != handlers_.end(); ++it) |
87 { | 87 { |