27#ifndef picohttpparser_h
28#define picohttpparser_h
33#if defined(_WIN32) || defined(_WIN64)
37#define ssize_t intptr_t
39#elif defined(__APPLE__)
42#elif defined(__linux__)
49#ifndef _SSIZE_T_DEFINED
55#define _SSIZE_T_DEFINED
75 size_t *method_len,
const char **path,
size_t *path_len,
76 int *minor_version,
struct phr_header *headers,
77 size_t *num_headers,
size_t last_len);
81 int *status,
const char **msg,
size_t *msg_len,
82 struct phr_header *headers,
size_t *num_headers,
87 size_t *num_headers,
size_t last_len);
ssize_t phr_decode_chunked(struct phr_chunked_decoder *decoder, char *buf, size_t *bufsz)
Definition picohttpparser.c:685
int phr_parse_response(const char *buf, size_t len, int *minor_version, int *status, const char **msg, size_t *msg_len, struct phr_header *headers, size_t *num_headers, size_t last_len)
Definition picohttpparser.c:613
int phr_parse_headers(const char *buf, size_t len, struct phr_header *headers, size_t *num_headers, size_t last_len)
Definition picohttpparser.c:641
long ssize_t
Definition picohttpparser.h:53
int phr_parse_request(const char *buf, size_t len, const char **method, size_t *method_len, const char **path, size_t *path_len, int *minor_version, struct phr_header *headers, size_t *num_headers, size_t last_len)
Definition picohttpparser.c:533
int phr_decode_chunked_is_in_data(struct phr_chunked_decoder *decoder)
Definition picohttpparser.c:824
Definition picohttpparser.h:90
uint64_t _total_overhead
Definition picohttpparser.h:96
size_t bytes_left_in_chunk
Definition picohttpparser.h:91
uint64_t _total_read
Definition picohttpparser.h:95
char _hex_count
Definition picohttpparser.h:93
char _state
Definition picohttpparser.h:94
char consume_trailer
Definition picohttpparser.h:92