httphandler

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StaticHandler

type StaticHandler struct {
	StatusCode int
	Body       []byte
	Header     http.Header
}

StaticHandler is an implementation of http.Handler which always writes the same pre-defined response.

func (StaticHandler) ServeHTTP

func (h StaticHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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