mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net.http: make http.parse_response() public so it can be used by http servers (#9653)
This commit is contained in:
parent
bf9fe659a9
commit
6c1a43415e
@ -261,7 +261,7 @@ fn (req &Request) method_and_url_to_response(method Method, url urllib.URL) ?Res
|
||||
return error('http.request.method_and_url_to_response: unsupported scheme: "$scheme"')
|
||||
}
|
||||
|
||||
fn parse_response(resp string) Response {
|
||||
pub fn parse_response(resp string) Response {
|
||||
mut header := new_header()
|
||||
// TODO: Cookie data type
|
||||
mut cookies := map[string]string{}
|
||||
|
Loading…
Reference in New Issue
Block a user