Namespace: go.std.net.http.httptrace
v1.0Contents
Summary
Provides a low-level interface to the net/http/httptrace package.
Package httptrace provides mechanisms to trace the events within
HTTP client requests.
Index
- *ClientTrace
- *DNSDoneInfo
- *DNSStartInfo
- *GotConnInfo
- *WroteRequestInfo
- ClientTrace
- ContextClientTrace
- DNSDoneInfo
- DNSStartInfo
- GotConnInfo
- WithClientTrace
- WroteRequestInfo
- arrayOfClientTrace
- arrayOfDNSDoneInfo
- arrayOfDNSStartInfo
- arrayOfGotConnInfo
- arrayOfWroteRequestInfo
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
(None.)
Variables
-
(None.)
Functions, Macros, and Special Forms
-
ContextClientTrace
Function v1.0(ContextClientTrace ctx)
ContextClientTrace returns the ClientTrace associated with the
provided context. If none, it returns nil.
Go input arguments: (ctx context.Context)
Go returns: *ClientTrace
Joker input arguments: [^go.std.context/Context ctx]
Joker returns: ^*ClientTrace -
WithClientTrace
Function v1.0(WithClientTrace ctx trace)
WithClientTrace returns a new context based on the provided parent
ctx. HTTP client requests made with the returned context will use
the provided trace hooks, in addition to any previous hooks
registered with ctx. Any hooks defined in the provided trace will
be called first.
Go input arguments: (ctx context.Context, trace *ClientTrace)
Go returns: context.Context
Joker input arguments: [^go.std.context/Context ctx, ^*ClientTrace trace]
Joker returns: ^go.std.context/Context
Types
-
*ClientTrace
Concrete Type v1.0ClientTrace is a set of hooks to run at various stages of an outgoing
HTTP request. Any particular hook may be nil. Functions may be
called concurrently from different goroutines and some may be called
after the request has completed or failed.
ClientTrace currently traces a single HTTP request & response
during a single round trip and has no hooks that span a series
of redirected requests.
See https://blog.golang.org/http-tracing for more.
-
*DNSDoneInfo
Concrete Type v1.0DNSDoneInfo contains information about the results of a DNS lookup.
-
*DNSStartInfo
Concrete Type v1.0DNSStartInfo contains information about a DNS request.
-
*GotConnInfo
Concrete Type v1.0GotConnInfo is the argument to the ClientTrace.GotConn function and
contains information about the obtained connection.
-
*WroteRequestInfo
Concrete Type v1.0WroteRequestInfo contains information provided to the WroteRequest
hook.
-
ClientTrace
Concrete Type v1.0ClientTrace is a set of hooks to run at various stages of an outgoing
HTTP request. Any particular hook may be nil. Functions may be
called concurrently from different goroutines and some may be called
after the request has completed or failed.
ClientTrace currently traces a single HTTP request & response
during a single round trip and has no hooks that span a series
of redirected requests.
See https://blog.golang.org/http-tracing for more.
-
DNSDoneInfo
Concrete Type v1.0DNSDoneInfo contains information about the results of a DNS lookup.
-
DNSStartInfo
Concrete Type v1.0DNSStartInfo contains information about a DNS request.
-
GotConnInfo
Concrete Type v1.0GotConnInfo is the argument to the ClientTrace.GotConn function and
contains information about the obtained connection.
-
WroteRequestInfo
Concrete Type v1.0WroteRequestInfo contains information provided to the WroteRequest
hook.
-
arrayOfClientTrace
Concrete Type v1.0ClientTrace is a set of hooks to run at various stages of an outgoing
HTTP request. Any particular hook may be nil. Functions may be
called concurrently from different goroutines and some may be called
after the request has completed or failed.
ClientTrace currently traces a single HTTP request & response
during a single round trip and has no hooks that span a series
of redirected requests.
See https://blog.golang.org/http-tracing for more.
-
arrayOfDNSDoneInfo
Concrete Type v1.0DNSDoneInfo contains information about the results of a DNS lookup.
-
arrayOfDNSStartInfo
Concrete Type v1.0DNSStartInfo contains information about a DNS request.
-
arrayOfGotConnInfo
Concrete Type v1.0GotConnInfo is the argument to the ClientTrace.GotConn function and
contains information about the obtained connection.
-
arrayOfWroteRequestInfo
Concrete Type v1.0WroteRequestInfo contains information provided to the WroteRequest
hook.