MCPcopy Create free account
hub / github.com/NetSys/bess / parse_http_version

Function parse_http_version

core/utils/http_parser.cc:228–238  ·  view source on GitHub ↗

returned pointer is always within [buf, buf_end), or null */

Source from the content-addressed store, hash-verified

226
227/* returned pointer is always within [buf, buf_end), or null */
228static const char *parse_http_version(const char *buf, const char *buf_end,
229 int *minor_version, int *ret) {
230 EXPECT_CHAR('H');
231 EXPECT_CHAR('T');
232 EXPECT_CHAR('T');
233 EXPECT_CHAR('P');
234 EXPECT_CHAR('/');
235 EXPECT_CHAR('1');
236 EXPECT_CHAR('.');
237 return parse_int(buf, buf_end, minor_version, ret);
238}
239
240static const char *parse_headers(const char *buf, const char *buf_end,
241 struct phr_header *headers,

Callers 2

parse_requestFunction · 0.85
parse_responseFunction · 0.85

Calls 1

parse_intFunction · 0.85

Tested by

no test coverage detected