mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
29 lines
674 B
V
29 lines
674 B
V
// Copyright (c) 2019-2021 Alexander Medvednikov. All rights reserved.
|
|
// 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
|