Documentation ¶
Overview ¶
Package api contains a forwarder to route system HTTP requests to the local API server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forwarder ¶
type Forwarder struct {
// contains filtered or unexported fields
}
Forwarder is a request modifier that routes the request to the API server and marks the request for skipped logging.
func NewForwarder ¶
NewForwarder returns a Forwarder that rewrites requests to host.
func (*Forwarder) ModifyRequest ¶
ModifyRequest forwards the request to the local API server running at f.port, downgrades the scheme to http and marks the request context for skipped logging. API requests are marked for skipping the roundtrip.
Click to show internal directories.
Click to hide internal directories.