1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

http: fix recent changes; picoev: make compile

This commit is contained in:
Alexander Medvednikov
2020-05-20 05:36:46 +02:00
parent e137fbb1ea
commit 0a6d709ce2
7 changed files with 30 additions and 24 deletions

View File

@ -26,4 +26,3 @@ fn phr_parse_request_path() int
fn phr_parse_request_path_pipeline() int
fn C.get_date() byteptr
fn C.u64toa() int
fn C.memcmp() int

View File

@ -1,15 +1,18 @@
module picohttpparser
pub struct Request {
mut:
pub mut:
method string
path string
headers *C.phr_header_t
headers &C.phr_header_t
num_headers u64
}
[inline]
pub fn (mut r Request) parse_request(s string, headers *C.phr_header_t, max_headers int) int {
pub fn (mut r Request) parse_request(s string, headers &C.phr_header_t, max_headers int) int {
method_len := u64(0)
path_len := u64(0)
minor_version := 0

View File

@ -5,7 +5,7 @@ pub struct Response {
pub:
date byteptr
buf_start byteptr
mut:
pub mut:
buf byteptr
}