Skip to content

Commit

Permalink
net.http: make http.parse_response() public so it can be used by http…
Browse files Browse the repository at this point in the history
… servers (#9653)
  • Loading branch information
donpdonp committed Apr 9, 2021
1 parent bf9fe65 commit 6c1a434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/net/http/http.v
Expand Up @@ -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{}
Expand Down

0 comments on commit 6c1a434

Please sign in to comment.