Documentation ¶
Index ¶
- Constants
- type HttpConnection
- func (r *HttpConnection) Close() error
- func (r *HttpConnection) ReadClientServerStream(p []byte) (int, error)
- func (r *HttpConnection) ReadServerClientStream(p []byte) (int, error)
- func (r *HttpConnection) Write(p []byte, streamId uint32) (int, error)
- func (r *HttpConnection) WriteClientServerStream(p []byte) (int, error)
- func (r *HttpConnection) WriteServerClientStream(p []byte) (int, error)
- type HttpStreamReadWriter
- type StreamId
Constants ¶
View Source
const ( InitStream = StreamId(0) ClientServer = StreamId(1) ServerClient = StreamId(3) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpConnection ¶
type HttpConnection struct {
// contains filtered or unexported fields
}
HttpConnection is a wrapper around a http2.Framer that provides a simple interface to read and write http2 streams for iOS17+.
func NewHttpConnection ¶
func NewHttpConnection(rw io.ReadWriteCloser) (*HttpConnection, error)
func (*HttpConnection) Close ¶
func (r *HttpConnection) Close() error
func (*HttpConnection) ReadClientServerStream ¶
func (r *HttpConnection) ReadClientServerStream(p []byte) (int, error)
func (*HttpConnection) ReadServerClientStream ¶
func (r *HttpConnection) ReadServerClientStream(p []byte) (int, error)
func (*HttpConnection) Write ¶
func (r *HttpConnection) Write(p []byte, streamId uint32) (int, error)
func (*HttpConnection) WriteClientServerStream ¶
func (r *HttpConnection) WriteClientServerStream(p []byte) (int, error)
func (*HttpConnection) WriteServerClientStream ¶
func (r *HttpConnection) WriteServerClientStream(p []byte) (int, error)
type HttpStreamReadWriter ¶
type HttpStreamReadWriter struct {
// contains filtered or unexported fields
}
func NewStreamReadWriter ¶
func NewStreamReadWriter(h *HttpConnection, streamId StreamId) HttpStreamReadWriter
Click to show internal directories.
Click to hide internal directories.