![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
HTTP/1.1 request-head parser (see n_http_req.h). More...
Go to the source code of this file.
Functions | |
| static int | lc (int c) |
| const char * | n_http_request_header (const n_http_request *req, const char *buf, const char *name, size_t *value_len) |
| find a header of a parsed request | |
| size_t | n_http_request_header_count (const n_http_request *req, const char *buf, const char *name) |
| count the headers of a parsed request that carry a name | |
| n_http_req_status | n_http_request_parse (const char *buf, size_t len, n_http_request *out) |
| parse an HTTP/1.1 request head from [buf, buf+len) | |
| n_http_req_status | n_http_request_parse_ex (const char *buf, size_t len, const n_http_req_limits *limits, n_http_request *out) |
| parse an HTTP/1.1 request head with caller-chosen limits | |
| static int | name_eq (const char *s, size_t n, const char *lit) |
| static int | name_ieq (const char *a, const char *b, size_t n) |
| static int | name_token_ok (const char *s, size_t n) |
| static int | parse_body_len (const char *s, size_t n, long long max, long long *out) |
| static int | target_ok (unsigned char c) |
| static int | value_ok (const char *s, size_t n) |
HTTP/1.1 request-head parser (see n_http_req.h).
A small, strict scanner, bounded and over-read safe on every path.
Definition in file n_http_req.c.
|
static |
Definition at line 31 of file n_http_req.c.
Referenced by name_eq(), and name_ieq().
|
static |
Definition at line 37 of file n_http_req.c.
References lc().
Referenced by n_http_request_parse_ex().
|
static |
Definition at line 46 of file n_http_req.c.
References lc().
Referenced by n_http_request_header(), and n_http_request_header_count().
|
static |
Definition at line 58 of file n_http_req.c.
Referenced by n_http_request_parse_ex().
|
static |
Definition at line 88 of file n_http_req.c.
Referenced by n_http_request_parse_ex().
|
static |
Definition at line 106 of file n_http_req.c.
Referenced by n_http_request_parse_ex().
|
static |
Definition at line 75 of file n_http_req.c.
Referenced by n_http_request_parse_ex().