2021-01-18 13:20:06 +01:00
|
|
|
// Copyright (c) 2019-2021 Alexander Medvednikov. All rights reserved.
|
2020-01-23 03:26:30 +01:00
|
|
|
// Use of this source code is governed by an MIT license
|
|
|
|
// that can be found in the LICENSE file.
|
|
|
|
module picohttpparser
|
|
|
|
|
|
|
|
#flag -I @VROOT/thirdparty/picohttpparser
|
|
|
|
#flag -L @VROOT/thirdparty/picohttpparser
|
|
|
|
#flag @VROOT/thirdparty/picohttpparser/picohttpparser.o
|
|
|
|
|
|
|
|
#include "picohttpparser.h"
|
|
|
|
|
|
|
|
struct C.phr_header {
|
|
|
|
pub:
|
|
|
|
name charptr
|
|
|
|
name_len int
|
|
|
|
value charptr
|
|
|
|
value_len int
|
|
|
|
}
|
|
|
|
struct C.phr_header_t {}
|
|
|
|
|
|
|
|
fn phr_parse_request() int
|
|
|
|
fn phr_parse_response() int
|
|
|
|
fn phr_parse_headers() int
|
|
|
|
|
|
|
|
fn phr_parse_request_path() int
|
|
|
|
fn phr_parse_request_path_pipeline() int
|
|
|
|
fn C.get_date() byteptr
|
|
|
|
fn C.u64toa() int
|