NewTransport

Functionin fsthttpcompute-sdk-go v1.11.0View source
func NewTransport(backend string) *Transport

NewTransport creates a new Transport instance with the given default backend. Any request made to a host not explicitly mapped to a backend using the AddHostBackend method will be sent to the default backend.

Parameters

backend: string

Returns