MCPcopy Create free account
hub / github.com/devld/go-drive / newHttpResponse

Function newHttpResponse

script/call_http.go:179–186  ·  view source on GitHub ↗
(vm *VM, resp *http.Response)

Source from the content-addressed store, hash-verified

177}
178
179func newHttpResponse(vm *VM, resp *http.Response) *httpResponse {
180 return &httpResponse{
181 vm: vm,
182 Status: resp.StatusCode,
183 Headers: &httpHeaders{vm, resp.Header},
184 Body: NewReadCloser(vm, resp.Body),
185 }
186}
187
188type httpResponse struct {
189 vm *VM

Callers 1

vm_httpFunction · 0.85

Calls 1

NewReadCloserFunction · 0.85

Tested by

no test coverage detected