MCPcopy Create free account
hub / github.com/boostorg/asio / to_string

Function to_string

example/cpp11/http/server/reply.cpp:198–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 "</html>";
197
198std::string to_string(reply::status_type status)
199{
200 switch (status)
201 {
202 case reply::ok:
203 return ok;
204 case reply::created:
205 return created;
206 case reply::accepted:
207 return accepted;
208 case reply::no_content:
209 return no_content;
210 case reply::multiple_choices:
211 return multiple_choices;
212 case reply::moved_permanently:
213 return moved_permanently;
214 case reply::moved_temporarily:
215 return moved_temporarily;
216 case reply::not_modified:
217 return not_modified;
218 case reply::bad_request:
219 return bad_request;
220 case reply::unauthorized:
221 return unauthorized;
222 case reply::forbidden:
223 return forbidden;
224 case reply::not_found:
225 return not_found;
226 case reply::internal_server_error:
227 return internal_server_error;
228 case reply::not_implemented:
229 return not_implemented;
230 case reply::bad_gateway:
231 return bad_gateway;
232 case reply::service_unavailable:
233 return service_unavailable;
234 default:
235 return internal_server_error;
236 }
237}
238
239} // namespace stock_replies
240

Callers 9

stock_replyMethod · 0.70
handle_requestMethod · 0.70
stringFunction · 0.50
network_v4Class · 0.50
addressClass · 0.50
network_v6Class · 0.50
address_v4Class · 0.50
address_v6Class · 0.50
endpointClass · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected