Back to godoc.org
github.com/bnfinet/lasso / pkg / capturewriter

Package capturewriter

v0.17.3
Latest Go to latest

The latest major version is .

Published: Jul 30, 2020 | License: MIT | Module: github.com/bnfinet/lasso

Index

func Configure

func Configure()

Configure see main.go configure()

type CaptureWriter

type CaptureWriter struct {
	http.ResponseWriter
	StatusCode int
}

CaptureWriter extends http.ResponseWriter

func (*CaptureWriter) GetStatusCode

func (w *CaptureWriter) GetStatusCode() int

GetStatusCode return w.StatusCode

func (*CaptureWriter) Header

func (w *CaptureWriter) Header() http.Header

Header calls http.Writer.Header()

func (*CaptureWriter) Write

func (w *CaptureWriter) Write(b []byte) (int, error)

func (*CaptureWriter) WriteHeader

func (w *CaptureWriter) WriteHeader(code int)

WriteHeader calls http.Writer.WriteHeader(code)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier