responsewriter

package
Version: v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package responsewriter.

This package provide wrapper type for http.ResponseWriter and provide additional functionality to it

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseWriter

type ResponseWriter interface {
	http.ResponseWriter

	// Tells status if already written, otherwise 0
	Status() int

	// Tells body size if already written, otherwise 0
	Size() int

	// Tells if already written
	Written() bool

	// Tells if hijacked
	Hijacked() bool
}

func Wrap

Wrap a net/http.ResponseWriter, return rw if rw is already wrapped

Jump to

Keyboard shortcuts

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