net.http: make http.parse_response() public so it can be used by http servers (#9653)
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