Categorygithub.com/kevinmichaelchen/fx-libs/fx/http/client
package
0.0.1
Repository: https://github.com/kevinmichaelchen/fx-libs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

An FX module that provides an HTTP client.

Installing

go get -v github.com/kevinmichaelchen/fx-libs/fx/http/client

Environment variables

Env VarPurposeDefault
HTTP_CLIENT_TRANSPORT_DIAL_TIMEOUTmax amount of time a dial will wait for a connect to complete10s
HTTP_CLIENT_TRANSPORT_DIAL_KEEP_ALIVEthe interval between keep-alive probes for an active network connection.30s
HTTP_CLIENT_TRANSPORT_IDLE_CONN_TIMEOUTmax amount of time an idle (keep-alive) connection will remain idle before closing itself90s
HTTP_CLIENT_TRANSPORT_MAX_IDLE_CONNSmax number of idle (keep-alive) connections across all hosts100
HTTP_CLIENT_TRANSPORT_MAX_IDLE_CONNS_PER_HOSTmax idle (keep-alive) connections to keep per-host10
HTTP_CLIENT_TRANSPORT_EXPECT_CONTINUE_TIMEOUTamount of time to wait for a server's first response headers after fully writing the request headers if the request has an "Expect: 100-continue" header1s
HTTP_CLIENT_TRANSPORT_RESPONSE_HEADER_TIMEOUTmax amount of time to wait for a server's response headers after fully writing the request (including its body, if any)15s
HTTP_CLIENT_TRANSPORT_TLS_HANDSHAKE_TIMEOUTmax amount of time to wait for TLS handshake5s