package skip

import "github.com/google/martian/skip"

Package skip provides a request modifier to skip the HTTP round-trip.

Index

Types

type RoundTrip

type RoundTrip struct{}

RoundTrip is a modifier that skips the request round-trip.

func NewRoundTrip

func NewRoundTrip() *RoundTrip

NewRoundTrip returns a new modifier that skips round-trip.

func (*RoundTrip) ModifyRequest

func (r *RoundTrip) ModifyRequest(req *http.Request) error

ModifyRequest skips the request round-trip.

Source Files

skip.go

Version
v2.1.0+incompatible (latest)
Published
Sep 28, 2018
Platform
js/wasm
Imports
4 packages
Last checked
3 hours ago

Tools for package owners.