http-muncher 0.3.1

Rust Streaming HTTP parser based on nodejs/http-parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12

#include "../http-parser/http_parser.h"

/*
Realigns a bit field struct in a predictable way.
*/
uint32_t http_get_struct_flags(const http_parser *state) {
  return state->status_code |
    (state->method << 16) |
    (state->http_errno << 24) |
    (state->upgrade << 31);
}