api

package
v0.0.0-...-e9f2c10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func Listen

func Listen(host string, port int)

func NewCapturingResponseWriter

func NewCapturingResponseWriter(w http.ResponseWriter, captureBody bool) *capturingWriter

NewCaptureWriter wraps an existing ResponseWrapper into a proxy and caches response body and status written to it

func RandomString

func RandomString(randomBytesLen int) (string, error)

Types

type CapturedResponse

type CapturedResponse struct {
	Status int
	Header http.Header
	Buffer *bytes.Buffer
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL