MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / load

Method load

base/poco/Net/src/HTMLForm.cpp:137–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136
137void HTMLForm::load(const HTTPRequest& request, std::istream& requestBody, PartHandler& handler)
138{
139 clear();
140
141 URI uri(request.getURI());
142 const std::string& query = uri.getRawQuery();
143 if (!query.empty())
144 {
145 std::istringstream istr(query);
146 readUrl(istr);
147 }
148
149 if (request.getMethod() == HTTPRequest::HTTP_POST || request.getMethod() == HTTPRequest::HTTP_PUT)
150 {
151 std::string mediaType;
152 NameValueCollection params;
153 MessageHeader::splitParameters(request.getContentType(), mediaType, params);
154 _encoding = mediaType;
155 if (_encoding == ENCODING_MULTIPART)
156 {
157 _boundary = params["boundary"];
158 readMultipart(requestBody, handler);
159 }
160 else
161 {
162 readUrl(requestBody);
163 }
164 }
165}
166
167
168void HTMLForm::load(const HTTPRequest& request, std::istream& requestBody)

Callers 6

ObjectMethod · 0.45
Object.cppFile · 0.45
xrayHandlerFunction · 0.45
dl_iterate_phdrFunction · 0.45
hasPHDRCacheFunction · 0.45

Calls 5

clearFunction · 0.85
loadFunction · 0.85
getURIMethod · 0.80
getContentTypeMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected