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:
@ -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
|
||||
|
@ -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
|
||||
|
@ -5,7 +5,7 @@ pub struct Response {
|
||||
pub:
|
||||
date byteptr
|
||||
buf_start byteptr
|
||||
mut:
|
||||
pub mut:
|
||||
buf byteptr
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user