MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewMockHttpClientWithTransport

Function NewMockHttpClientWithTransport

test/testutil/testutil.go:59–63  ·  view source on GitHub ↗
(transport http.RoundTripper)

Source from the content-addressed store, hash-verified

57}
58
59func NewMockHttpClientWithTransport(transport http.RoundTripper) *http.Client {
60 httpClient := &http.Client{}
61 httpClient.Transport = transport
62 return httpClient
63}
64
65// ReadJson reads from `body`, then calls json.Unmarshal to try load JSON into object of type T
66// NOTE max length of 8k

Calls

no outgoing calls