Documentation
¶
Index ¶
- type Http3Stream
- type RequestStream
- func (s *RequestStream) Close(reason adapter.ApplicationError)
- func (s *RequestStream) CloseRead(reason adapter.ApplicationError)
- func (s *RequestStream) HasRemainingData() bool
- func (s *RequestStream) Read(data []byte) (int, error)
- func (s *RequestStream) SendBody(data []byte) (int, error)
- func (s *RequestStream) SendHeader(status int, header http.Header) error
- func (s *RequestStream) SendTrailers() error
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) 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
Click to show internal directories.
Click to hide internal directories.