Documentation
¶
Index ¶
Constants ¶
View Source
const Backend = "net/http"
Backend identifies the selected HTTP stack.
Variables ¶
This section is empty.
Functions ¶
func CloseIdleConnections ¶
CloseIdleConnections releases pooled connections without depending on the concrete transport selected by the build.
func NewClient ¶
func NewClient(opts ClientOptions) *http.Client
NewClient builds the HTTP client used when a service package owns it.
func OperationContext ¶
func OperationContext(ctx context.Context, timeout time.Duration) (context.Context, context.CancelFunc)
OperationContext applies one timeout budget to a complete logical service operation. An earlier caller deadline still wins through context.WithTimeout.
Types ¶
type ClientOptions ¶
ClientOptions configures a service-owned HTTP client.
Click to show internal directories.
Click to hide internal directories.