Documentation ¶
Index ¶
- Variables
- func CacheConfig(id string, cfg *Config)
- func Dial(point *xnet.Point) (conn net.Conn, err error)
- func NewDefaultHttpDialer(fn TakerFn) *defaultHttpDialer
- func NewServeConn(w http.ResponseWriter, r *http.Request) (conn net.Conn, err error)
- func RegDialFn(name string, fn DialFn) error
- func RegServerFn(name string, fn ServerFn) error
- func RemoveConfig(id string)
- type ClientConn
- type CloserServer
- type Config
- type DialFn
- type Dialer
- type DialerFn
- type Handle
- type HandleUDP
- type Handler
- type HttpDialer
- type HttpTaker
- func (t HttpTaker) Do(req *http.Request, cfg *Config) (*http.Response, error)
- func (t *HttpTaker) GetSchema() string
- func (t HttpTaker) GetTLSConfig() *tls.Config
- func (t HttpTaker) NewClient(cfg *tls.Config) *http.Client
- func (t HttpTaker) NewRequest(u *url.URL) *http.Request
- func (t HttpTaker) NewURL(schema string) *url.URL
- type ServeConn
- type Server
- type ServerFn
- type Taker
- type TakerFn
- type UDPHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var TLSConfig = &tls.Config{MinVersion: tls.VersionTLS13, InsecureSkipVerify: false}
View Source
var TLSSkipConfig = &tls.Config{MinVersion: tls.VersionTLS13, InsecureSkipVerify: true}
Functions ¶
func CacheConfig ¶
func NewDefaultHttpDialer ¶
func NewDefaultHttpDialer(fn TakerFn) *defaultHttpDialer
func NewServeConn ¶
func RegServerFn ¶
func RemoveConfig ¶
func RemoveConfig(id string)
Types ¶
type ClientConn ¶
func NewClientConn ¶
func NewClientConn(pr *io.PipeReader, pw *io.PipeWriter, r io.ReadCloser, client *http.Client) *ClientConn
func (ClientConn) Close ¶
func (c ClientConn) Close() error
func (ClientConn) SetDeadline ¶
func (c ClientConn) SetDeadline(t time.Time) error
func (ClientConn) SetReadDeadline ¶
func (c ClientConn) SetReadDeadline(t time.Time) error
func (ClientConn) SetWriteDeadline ¶
func (c ClientConn) SetWriteDeadline(t time.Time) error
type CloserServer ¶
func (CloserServer) Close ¶
func (s CloserServer) Close() error
type Config ¶
type HttpDialer ¶
type ServeConn ¶
func (ServeConn) SetReadDeadline ¶ added in v0.9.3
func (ServeConn) SetWriteDeadline ¶ added in v0.9.3
Click to show internal directories.
Click to hide internal directories.