MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / New

Function New

clients/restclient/http_rest_client.go:55–62  ·  view source on GitHub ↗

New creates a new rest client

(transport runtime.ClientTransport, formats strfmt.Registry)

Source from the content-addressed store, hash-verified

53
54// New creates a new rest client
55func New(transport runtime.ClientTransport, formats strfmt.Registry) *Rest {
56 cli := new(Rest)
57 cli.Transport = transport
58
59 cli.Operations = operations.New(transport, formats)
60
61 return cli
62}
63
64// DefaultTransportConfig creates a TransportConfig with the
65// default settings taken from the meta section of the spec file.

Callers 2

NewRestClientFunction · 0.70
NewHTTPClientWithConfigFunction · 0.70

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected