httpdeadline

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	net.Conn
	// contains filtered or unexported fields
}

Conn retains timeout evidence before HTTP framing can replace the native read error. Each installed upload deadline gets its own record.

func (*Conn) Read

func (c *Conn) Read(p []byte) (int, error)

func (*Conn) SetDeadline

func (c *Conn) SetDeadline(deadline time.Time) error

func (*Conn) SetReadDeadline

func (c *Conn) SetReadDeadline(deadline time.Time) error

func (*Conn) UploadReadDeadline

func (c *Conn) UploadReadDeadline(deadline time.Time) (*ReadTimeout, error)

type Listener

type Listener struct{ net.Listener }

func (Listener) Accept

func (l Listener) Accept() (net.Conn, error)

type ReadTimeout

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

func NewReadTimeout

func NewReadTimeout(deadline time.Time) *ReadTimeout

func (*ReadTimeout) Observe

func (r *ReadTimeout) Observe(err error)

func (*ReadTimeout) Observed

func (r *ReadTimeout) Observed() bool

Jump to

Keyboard shortcuts

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