Documentation
¶
Index ¶
Constants ¶
View Source
const HTTPInvalidPayload = errors.Error("HTTPInvalidPayload")
HTTPInvalidPayload is returned by HTTP.Post when it receives an unexpected payload interface.
View Source
const MaxBytesPerPayload = 1000 * 1000
MaxBytesPerPayload is the maxmimum size of an aggregated HTTP payload. Substation uses a constant max size of 1MB.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct {
Client *retryablehttp.Client
}
HTTP wraps a retryable HTTP client.
func (*HTTP) EnableXRay ¶
func (h *HTTP) EnableXRay()
EnableXRay replaces the standard retryable HTTP client with an AWS XRay client. This method can be used when making HTTP calls on AWS infrastructure and should be enabled by looking for the environment variable "AWS_XRAY_DAEMON_ADDRESS".
func (*HTTP) IsEnabled ¶
IsEnabled identifies if the HTTP client is enabled and ready to use. This method can be used for lazy loading the client.
Click to show internal directories.
Click to hide internal directories.