uhttp

package
v0.0.0-...-44d96ad Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const TimeFormat = "Mon, 02 Jan 2006 15:04:05 GMT"

TimeFormat is the time format to use when generating times in HTTP headers. It is like time.RFC1123 but hard-codes GMT as the time zone. The time being formatted must be in UTC for Format to generate the correct format.

For parsing this time format, see [ParseTime].

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(addr string, handler http.Handler) error

func Now

func Now() time.Time

func NowRFC1123String

func NowRFC1123String() string

Types

type HttpConn

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

func NewHttpConn

func NewHttpConn(conn uio.Conn, handler http.Handler) *HttpConn

func (*HttpConn) Handle

func (hc *HttpConn) Handle() (err error)

func (*HttpConn) ServeHTTP

func (hc *HttpConn) ServeHTTP() error

Jump to

Keyboard shortcuts

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