| ... | ... | @@ -1063,6 +1063,7 @@ pub const protocol_map = std.ComptimeStringMap(Connection.Protocol, .{ |
| 1063 | 1063 | /// `uri` must remain alive during the entire request. |
| 1064 | 1064 | /// `headers` is cloned and may be freed after this function returns. |
| 1065 | 1065 | /// |
| 1066 | /// The caller is responsible for calling `deinit()` on the `Request`. |
| 1066 | 1067 | /// This function is threadsafe. |
| 1067 | 1068 | pub fn request(client: *Client, method: http.Method, uri: Uri, headers: http.Headers, options: RequestOptions) RequestError!Request { |
| 1068 | 1069 | const protocol = protocol_map.get(uri.scheme) orelse return error.UnsupportedUrlScheme; |