pipehttp

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnServer

type ConnServer struct {
	*http.Server
	// contains filtered or unexported fields
}

func NewConnServer

func NewConnServer(server *http.Server) (res *ConnServer)

func (*ConnServer) ServeConnAndShutdown

func (s *ConnServer) ServeConnAndShutdown(ctx context.Context, conn net.Conn) error

func (*ConnServer) ServeStdioConnAndShutdown

func (s *ConnServer) ServeStdioConnAndShutdown(ctx context.Context) error

type PipeListener

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

PipeListener is a hack to workaround the lack of http.Server.ServeConn. See: https://github.com/golang/go/issues/36673

func NewPipeListener

func NewPipeListener() *PipeListener

func NewPipeListenerContext

func NewPipeListenerContext(ctx0 context.Context) *PipeListener

func (*PipeListener) Accept

func (ln *PipeListener) Accept() (net.Conn, error)

func (*PipeListener) Addr

func (ln *PipeListener) Addr() net.Addr

func (*PipeListener) Close

func (ln *PipeListener) Close() error

func (*PipeListener) ServeConn

func (ln *PipeListener) ServeConn(conn net.Conn) error

ServeConn enqueues a new connection. The connection will be returned in the next Accept call.

Jump to

Keyboard shortcuts

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