MCPcopy Create free account
hub / github.com/chen3feng/toft / ResponseStatusHasContent

Function ResponseStatusHasContent

net/http/client.cpp:63–66  ·  view source on GitHub ↗

according to RFC2616, HTTP STATUS 1xx, 204, and 304 doesn't have a HTTP body.

Source from the content-addressed store, hash-verified

61// according to RFC2616, HTTP STATUS 1xx, 204, and 304 doesn't have a HTTP
62// body.
63bool ResponseStatusHasContent(int http_status)
64{
65 return http_status >= 200 && http_status != 204 && http_status != 304;
66}
67
68void AppendHeaderToRequest(const std::string& path,
69 const HttpHeaders& headers,

Callers 1

ReceiveResponseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected