Documentation ¶
Index ¶
- type Client
- func (c *Client) CloseIdleConnections()
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) Get(url string) (resp *http.Response, err error)
- func (c *Client) Head(url string) (resp *http.Response, err error)
- func (c *Client) Post(url, contentType string, body io.Reader) (resp *http.Response, err error)
- func (c *Client) PostForm(url string, data url.Values) (resp *http.Response, err error)
- type Server
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Transport *Transport CheckRedirect func(req *http.Request, via []*http.Request) error Jar http.CookieJar Timeout time.Duration // contains filtered or unexported fields }
Wrapper for net/http Client
func (*Client) CloseIdleConnections ¶
func (c *Client) CloseIdleConnections()
Wrapper for net/http client.CloseIdleConnections()
type Server ¶
type Server struct { *http.Server // Additional aTLS parameters Attest string MutualTls bool CmcAddr string CmcApi atls.CmcApiSelect CmcNetwork string Cmc *cmc.Cmc CmcPolicies []byte Ca []byte ResultCb func(result *ar.VerificationResult) }
Wrapper for http.Server
func (*Server) ListenAndServe ¶
type Transport ¶
type Transport struct { // Wrapped http.Transport parameters TLSClientConfig *tls.Config TLSHandshakeTimeout time.Duration DisableKeepAlives bool DisableCompression bool MaxIdleConns int MaxIdleConnsPerHost int MaxConnsPerHost int IdleConnTimeout time.Duration ResponseHeaderTimeout time.Duration ExpectContinueTimeout time.Duration MaxResponseHeaderBytes int64 WriteBufferSize int ReadBufferSize int // Additional aTLS parameters Attest string MutualTls bool CmcAddr string CmcApi atls.CmcApiSelect CmcNetwork string Cmc *cmc.Cmc CmcPolicies []byte Ca []byte ReadTimeout time.Duration ResultCb func(result *ar.VerificationResult) }
Wrapper for net/http Transport
Click to show internal directories.
Click to hide internal directories.