Documentation ¶
Index ¶
Constants ¶
View Source
const ( FRAME_DATA = 0x00 FRAME_HEADERS = 0x01 FRAME_CANCEL_PUSH = 0x03 FRAME_SETTINGS = 0x04 FRAME_PUSH_PROMISE = 0x05 FRAME_GOAWAY = 0x07 FRAME_MAX_PUSH_ID = 0x0D FRAME_WEBTRANSPORT_STREAM = 0x41 )
Frame types
View Source
const ( // https://datatracker.ietf.org/doc/html/draft-ietf-quic-http-34 SETTINGS_MAX_FIELD_SECTION_SIZE = SettingID(0x6) // https://datatracker.ietf.org/doc/html/draft-ietf-quic-qpack-21 SETTINGS_QPACK_MAX_TABLE_CAPACITY = SettingID(0x1) SETTINGS_QPACK_BLOCKED_STREAMS = SettingID(0x7) // https://datatracker.ietf.org/doc/html/draft-ietf-masque-h3-datagram-05#section-9.1 H3_DATAGRAM_05 = SettingID(0xffd277) // https://www.ietf.org/archive/id/draft-ietf-webtrans-http3-02.html#section-8.2 ENABLE_WEBTRANSPORT = SettingID(0x2b603742) )
Settings
View Source
const ( STREAM_CONTROL = 0x00 STREAM_PUSH = 0x01 STREAM_QPACK_ENCODER = 0x02 STREAM_QPACK_DECODER = 0x03 STREAM_WEBTRANSPORT_UNI_STREAM = 0x54 )
Stream types
Variables ¶
This section is empty.
Functions ¶
func RequestFromHeaders ¶
Types ¶
type DataStreamer ¶
type DataStreamer interface {
DataStream() quic.Stream
}
DataStreamer lets the caller take over the stream. After a call to DataStream the HTTP server library will not do anything else with the connection.
It becomes the caller's responsibility to manage and close the stream.
After a call to DataStream, the original Request.Body must not be used.
type ResponseWriter ¶
type ResponseWriter struct {
// contains filtered or unexported fields
}
func NewResponseWriter ¶
func NewResponseWriter(stream quic.Stream) *ResponseWriter
func (*ResponseWriter) DataStream ¶
func (w *ResponseWriter) DataStream() quic.Stream
func (*ResponseWriter) Flush ¶
func (w *ResponseWriter) Flush()
func (*ResponseWriter) Header ¶
func (w *ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (w *ResponseWriter) WriteHeader(status int)
type SettingsMap ¶
func (*SettingsMap) FromFrame ¶
func (s *SettingsMap) FromFrame(f Frame) error
func (SettingsMap) ToFrame ¶
func (s SettingsMap) ToFrame() Frame
Click to show internal directories.
Click to hide internal directories.