cmux

package
v2.0.0-beta.20 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cmux provides a compatibility wrapper around connmux.

This repository historically carried experimental code under a "cmux" folder. New development should use package connmux instead.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotMatched = connmux.ErrNotMatched
View Source
var ErrServerClosed = connmux.ErrServerClosed

Functions

This section is empty.

Types

type MatchWriter

type MatchWriter = connmux.MatchWriter

func HTTP2HeaderFieldSendSettings

func HTTP2HeaderFieldSendSettings(name, value string) MatchWriter

type Matcher

type Matcher = connmux.Matcher

func Any

func Any() Matcher

func HTTP1

func HTTP1() Matcher

func HTTP1Fast

func HTTP1Fast() Matcher

func HTTP2

func HTTP2() Matcher

func HTTP2HeaderField

func HTTP2HeaderField(name, value string) Matcher

func HTTP2HeaderFieldPrefix

func HTTP2HeaderFieldPrefix(name, valuePrefix string) Matcher

func Prefix

func Prefix(prefixes ...[]byte) Matcher

type Mux

type Mux = connmux.Mux

func New

func New(l net.Listener, opts ...Option) *Mux

type Option

type Option = connmux.Option

func WithConnBacklog

func WithConnBacklog(n int) Option

func WithErrorHandler

func WithErrorHandler(h func(error) bool) Option

func WithMaxSniffBytes

func WithMaxSniffBytes(n int) Option

func WithReadTimeout

func WithReadTimeout(d time.Duration) Option

Jump to

Keyboard shortcuts

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