http

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientIP

func GetClientIP(req *http.Request) net.IP

Types

type Body

type Body struct {
	// contains filtered or unexported fields
}

func NewBody

func NewBody(r io.ReadCloser, maxRecordSize int) *Body

func (*Body) Close

func (p *Body) Close() error

func (*Body) Content

func (p *Body) Content() []byte

func (*Body) Length

func (p *Body) Length() int64

func (*Body) Read

func (p *Body) Read(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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