A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/transport/http below:

http package - github.com/aws/aws-sdk-go-v2/aws/transport/http - Go Packages

This section is empty.

View Source
var (
	
	DefaultHTTPTransportMaxIdleConns        = 100
	DefaultHTTPTransportMaxIdleConnsPerHost = 10

	
	DefaultHTTPTransportIdleConnTimeout       = 90 * time.Second
	DefaultHTTPTransportTLSHandleshakeTimeout = 10 * time.Second
	DefaultHTTPTransportExpectContinueTimeout = 1 * time.Second

	
	DefaultHTTPTransportTLSMinVersion uint16 = tls.VersionTLS12
)

Defaults for the HTTPTransportBuilder.

Timeouts for net.Dialer's network connection.

AddResponseErrorMiddleware adds response error wrapper middleware

AddResponseReadTimeoutMiddleware adds a middleware to the stack that wraps the response body so that a read that takes too long will return an error.

RemoveContentTypeHeader removes content-type header if content length is unset or equal to zero.

type BuildableClient struct {
	
}

BuildableClient provides a HTTPClient implementation with options to create copies of the HTTPClient when additional configuration is provided.

The client's methods will not share the http.Transport value between copies of the BuildableClient. Only exported member values of the Transport and optional Dialer will be copied between copies of BuildableClient.

NewBuildableClient returns an initialized client for invoking HTTP requests.

Do implements the HTTPClient interface's Do method to invoke a HTTP request, and receive the response. Uses the BuildableClient's current configuration to invoke the http.Request.

If connection pooling is enabled (aka HTTP KeepAlive) the client will only share pooled connections with its own instance. Copies of the BuildableClient will have their own connection pools.

Redirect (3xx) responses will not be followed, the HTTP response received will returned instead.

Freeze returns a frozen aws.HTTPClient implementation that is no longer a BuildableClient. Use this to prevent the SDK from applying DefaultMode configuration values to a buildable client.

GetDialer returns a copy of the client's network dialer.

GetTimeout returns a copy of the client's timeout to cancel requests with.

GetTransport returns a copy of the client's HTTP Transport.

WithDialerOptions copies the BuildableClient and returns it with the net.Dialer options applied. Will set the client's http.Transport DialContext member.

WithTimeout Sets the timeout used by the client for all requests.

WithTransportOptions copies the BuildableClient and returns it with the http.Transport options applied.

If a non (*http.Transport) was set as the round tripper, the round tripper will be replaced with a default Transport value before invoking the option functions.

ResponseError provides the HTTP centric error type wrapping the underlying error with the HTTP response value and the deserialized RequestID.

As populates target and returns true if the type of target is a error type that the ResponseError embeds, (e.g.AWS HTTP ResponseError)

Error returns the formatted error

ServiceRequestID returns the request id associated with Response Error

type ResponseErrorWrapper struct {
}

ResponseErrorWrapper wraps operation errors with ResponseError.

func (*ResponseErrorWrapper) HandleDeserialize ΒΆ added in v1.25.2

HandleDeserialize wraps the stack error with smithyhttp.ResponseError.

ID returns the middleware identifier

type ResponseTimeoutError struct {
	TimeoutDur time.Duration
}

ResponseTimeoutError is an error when the reads from the response are delayed longer than the timeout the read was configured for.

Timeout returns that the error is was caused by a timeout, and can be retried.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4