Thanks to visit codestin.com
Credit goes to pkg.go.dev

xhttp

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientCodec

func ClientCodec() codec.Codec

ClientCodec create a http client codec

func Handler

func Handler(handler http.Handler) codec.Codec

Handler to convert http.Handler to codec.Codec

func ServerCodec

func ServerCodec() codec.Codec

ServerCodec create a http server codec

Types

type ResponseWriter added in v1.6.7

type ResponseWriter interface {
	http.ResponseWriter
	http.Flusher

	Request() *http.Request
}

func NewResponseWriter

func NewResponseWriter(request *http.Request, writer io.Writer) ResponseWriter

NewResponseWriter create a http response writer

Jump to

Keyboard shortcuts

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