http3streams

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Http3Stream

type Http3Stream interface {
	io.Reader
	SendHeader(status int, headers http.Header) error //send a generic frame type
	SendBody(data []byte) (int, error)
	// trailers are the same as headers, but sent after the body.
	SendTrailers() error
	HasRemainingData() bool
	Close(reason adapter.ApplicationError)
	CloseRead(reason adapter.ApplicationError)
}

func NewRequestStream

func NewRequestStream(streamReader io.Reader, stream adapter.QuicBiStream, qpack qpackApi.QpackApi) Http3Stream

type RequestStream

type RequestStream struct {
	QuicStream   adapter.QuicBiStream //RequestStream uses bidirectional stream
	QpackEncoder qpackApi.QpackApi
	// contains filtered or unexported fields
}

func (*RequestStream) Close

func (s *RequestStream) Close(reason adapter.ApplicationError)

func (*RequestStream) CloseRead

func (s *RequestStream) CloseRead(reason adapter.ApplicationError)

func (*RequestStream) HasRemainingData

func (s *RequestStream) HasRemainingData() bool

func (*RequestStream) Read

func (s *RequestStream) Read(data []byte) (int, error)

func (*RequestStream) SendBody

func (s *RequestStream) SendBody(data []byte) (int, error)

func (*RequestStream) SendHeader

func (s *RequestStream) SendHeader(status int, header http.Header) error

send headers as an http3 HEADER frame, using qpack encoding

func (*RequestStream) SendTrailers

func (s *RequestStream) SendTrailers() error

Jump to

Keyboard shortcuts

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