Mercurial > hg > orthanc
comparison OrthancServer/OrthancHttpHandler.cpp @ 1446:8dc80ba768aa
refactoring: IHttpHandler does not use std::string to hold the request body
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Jul 2015 13:16:12 +0200 |
parents | d26c8a93d05a |
children | 3232f1c995a5 |
comparison
equal
deleted
inserted
replaced
1445:d26c8a93d05a | 1446:8dc80ba768aa |
---|---|
41 bool OrthancHttpHandler::Handle(HttpOutput& output, | 41 bool OrthancHttpHandler::Handle(HttpOutput& output, |
42 HttpMethod method, | 42 HttpMethod method, |
43 const UriComponents& uri, | 43 const UriComponents& uri, |
44 const Arguments& headers, | 44 const Arguments& headers, |
45 const GetArguments& getArguments, | 45 const GetArguments& getArguments, |
46 const std::string& body) | 46 const char* bodyData, |
47 size_t bodySize) | |
47 { | 48 { |
48 bool found = false; | 49 bool found = false; |
49 | 50 |
50 for (Handlers::const_iterator it = handlers_.begin(); | 51 for (Handlers::const_iterator it = handlers_.begin(); |
51 it != handlers_.end() && !found; ++it) | 52 it != handlers_.end() && !found; ++it) |
52 { | 53 { |
53 found = (*it)->Handle(output, method, uri, headers, getArguments, body); | 54 found = (*it)->Handle(output, method, uri, headers, getArguments, bodyData, bodySize); |
54 } | 55 } |
55 | 56 |
56 return found; | 57 return found; |
57 } | 58 } |
58 | 59 |