capturewriter

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure()

Configure see main.go configure()

Types

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)

Jump to

Keyboard shortcuts

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