package api
import "github.com/google/martian/api"
Package api contains a forwarder to route system HTTP requests to the local API server.
Index ¶
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.
Source Files ¶
- Version
- v2.1.0+incompatible (latest)
- Published
- Sep 28, 2018
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 6 hours ago –
Tools for package owners.