Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentRoundTripper ¶
type AgentRoundTripper struct { Next http.RoundTripper // contains filtered or unexported fields }
AgentRoundTripper implements the http.RoundTripper interface.
func NewAgent ¶
func NewAgent(name string) *AgentRoundTripper
NewAgent is a constructor for AgentRoundTripper, that provides default transport.
func (*AgentRoundTripper) RoundTrip ¶
RoundTrip executes a single HTTP transaction, returning a Response for the provided Request.
func (*AgentRoundTripper) WithNext ¶
func (s *AgentRoundTripper) WithNext(next RoundTripper) RoundTripper
WithNext can set next RoundTripper object
type RoundTripper ¶
type RoundTripper interface { http.RoundTripper WithNext(next RoundTripper) RoundTripper }
RoundTripper is the main interface, implements the http.RoundTripper interface with additional WithNext function
Click to show internal directories.
Click to hide internal directories.