remove me later

Jef Roosens 2022-05-14 20:04:21 +02:00
parent fa780b6e4a
commit e29c188f76
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 11 additions and 0 deletions

View File

@ -50,6 +50,8 @@ pub fn (mut d DockerDaemon) send_request_with_json<T>(method string, url urllib.
// read_response_head consumes the socket's contents until it encounters
// '\r\n\r\n', after which it parses the response as an HTTP response.
// Importantly, this function never consumes past the HTTP separator, so the
// body can be read fully later on.
pub fn (mut d DockerDaemon) read_response_head() ?http.Response {
mut c := 0
mut buf := []u8{len: 4}

View File

@ -0,0 +1,9 @@
module docker
import io
struct ChunkedResponseStream {
reader io.Reader
}