Documentation
¶
Index ¶
- func BuildPayload(c *apitoolkit.Client, SDKType string, trackingStart time.Time, ...) apitoolkit.Payload
- type InstrumentedHttpClient
- func (c *InstrumentedHttpClient) CloseIdleConnections()
- func (c *InstrumentedHttpClient) Do(req *fhttp.Request) (res *fhttp.Response, err error)
- func (c *InstrumentedHttpClient) Get(url string) (*fhttp.Response, error)
- func (c *InstrumentedHttpClient) GetCookieJar() fhttp.CookieJar
- func (c *InstrumentedHttpClient) GetCookies(u *url.URL) []*fhttp.Cookie
- func (c *InstrumentedHttpClient) GetFollowRedirect() bool
- func (c *InstrumentedHttpClient) GetProxy() string
- func (c *InstrumentedHttpClient) Head(url string) (*fhttp.Response, error)
- func (c *InstrumentedHttpClient) Post(url, contentType string, body io.Reader) (*fhttp.Response, error)
- func (c *InstrumentedHttpClient) SetCookieJar(jar fhttp.CookieJar)
- func (c *InstrumentedHttpClient) SetCookies(u *url.URL, cookies []*fhttp.Cookie)
- func (c *InstrumentedHttpClient) SetFollowRedirect(followRedirect bool)
- func (c *InstrumentedHttpClient) SetProxy(proxyUrl string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPayload ¶
func BuildPayload(c *apitoolkit.Client, SDKType string, trackingStart time.Time, req *fhttp.Request, statusCode int, reqBody []byte, respBody []byte, respHeader map[string][]string, pathParams map[string]string, urlPath string, redactHeadersList, redactRequestBodyList, redactResponseBodyList []string, errorList []apitoolkit.ATError, msgID uuid.UUID, parentID *uuid.UUID, ) apitoolkit.Payload
Types ¶
type InstrumentedHttpClient ¶
type InstrumentedHttpClient struct {
// contains filtered or unexported fields
}
func NewHttpClient ¶
func NewHttpClient(ctx context.Context, client tls_client.HttpClient, apitoolkitClient *apitoolkit.Client) *InstrumentedHttpClient
func (*InstrumentedHttpClient) CloseIdleConnections ¶
func (c *InstrumentedHttpClient) CloseIdleConnections()
func (*InstrumentedHttpClient) Get ¶
func (c *InstrumentedHttpClient) Get(url string) (*fhttp.Response, error)
func (*InstrumentedHttpClient) GetCookieJar ¶
func (c *InstrumentedHttpClient) GetCookieJar() fhttp.CookieJar
func (*InstrumentedHttpClient) GetCookies ¶
func (c *InstrumentedHttpClient) GetCookies(u *url.URL) []*fhttp.Cookie
func (*InstrumentedHttpClient) GetFollowRedirect ¶
func (c *InstrumentedHttpClient) GetFollowRedirect() bool
func (*InstrumentedHttpClient) GetProxy ¶
func (c *InstrumentedHttpClient) GetProxy() string
func (*InstrumentedHttpClient) Head ¶
func (c *InstrumentedHttpClient) Head(url string) (*fhttp.Response, error)
func (*InstrumentedHttpClient) SetCookieJar ¶
func (c *InstrumentedHttpClient) SetCookieJar(jar fhttp.CookieJar)
func (*InstrumentedHttpClient) SetCookies ¶
func (c *InstrumentedHttpClient) SetCookies(u *url.URL, cookies []*fhttp.Cookie)
func (*InstrumentedHttpClient) SetFollowRedirect ¶
func (c *InstrumentedHttpClient) SetFollowRedirect(followRedirect bool)
func (*InstrumentedHttpClient) SetProxy ¶
func (c *InstrumentedHttpClient) SetProxy(proxyUrl string) error
Click to show internal directories.
Click to hide internal directories.