1
0
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:
Don Park 2021-04-09 14:42:25 -06:00 committed by GitHub
parent bf9fe659a9
commit 6c1a43415e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{}