Documentation ¶
Index ¶
- Variables
- func RunPprof(sh *HTTP)
- func UnescapeInplace(s []byte, plusSpace bool) []byte
- type Conn
- type Error
- type HTTP
- func (r *HTTP) Body() []byte
- func (r *HTTP) Bytes(code int, contentType string, data []byte) *HTTP
- func (r *HTTP) BytesHeaders(code int, contentType string, hdr http.Header, data []byte) *HTTP
- func (w *HTTP) FinishChunked()
- func (r *HTTP) Flush() *HTTP
- func (r *HTTP) ForeachHeader(f func(k, v string) bool)
- func (r *HTTP) ForeachQuery(f func(k string, v string))
- func (r *HTTP) GetHeader(key string) (value string)
- func (r *HTTP) GetQuery(k string) string
- func (r *HTTP) GetQueryInt64(k string) (int64, error)
- func (r *HTTP) GetQueryInt64Default(k string, v int64) int64
- func (r *HTTP) Method() string
- func (r *HTTP) Query() *plru.Map[string, string]
- func (r *HTTP) Redirect(code int, location string) *HTTP
- func (r *HTTP) Release()
- func (sh *HTTP) RunGoHandler(h http.HandlerFunc)
- func (r *HTTP) StartChunked(code int, contentType string, hdr http.Header)
- func (r *HTTP) Text(code int, msg string) *HTTP
- func (r *HTTP) URL() *url.URL
- func (w *HTTP) UpgradeWebsocket(hdr http.Header) *Websocket
- func (w *HTTP) Write(p []byte) (int, error)
- func (w *HTTP) WriteString(s string) (int, error)
- type Listener
- type Redis
- func (r *Redis) Flush() *Redis
- func (r *Redis) Get(i int) []byte
- func (r *Redis) Int64(i int) (int64, error)
- func (r *Redis) Int64Default(i int, v int64) int64
- func (r *Redis) Len() int
- func (r *Redis) Release()
- func (r *Redis) Str(i int) string
- func (r *Redis) WriteArrayBegin(n int) *Redis
- func (r *Redis) WriteBulk(p []byte) *Redis
- func (r *Redis) WriteBulkString(p string) *Redis
- func (r *Redis) WriteError(err string) *Redis
- func (r *Redis) WriteRawBytes(p []byte) *Redis
- func (r *Redis) WriteSimpleString(p string) *Redis
- type SSL
- type SSLCtx
- type Websocket
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ShortWriteEmitter = func() {} WriteRaceEmitter = func(int) {} RequestMaxBytes = 1 * 1024 * 1024 TCPKeepAlive = 60 DebugFlag = os.Getenv("RESH_DEBUG") != "" )
Functions ¶
func UnescapeInplace ¶
Types ¶
type Conn ¶
type Conn struct { Tag any // contains filtered or unexported fields }
func (*Conn) RemoteAddr ¶
func (*Conn) ReuseInputBuffer ¶
type HTTP ¶
func (*HTTP) BytesHeaders ¶
func (*HTTP) FinishChunked ¶
func (w *HTTP) FinishChunked()
func (*HTTP) ForeachHeader ¶
func (*HTTP) ForeachQuery ¶
func (*HTTP) RunGoHandler ¶
func (sh *HTTP) RunGoHandler(h http.HandlerFunc)
func (*HTTP) StartChunked ¶
type Listener ¶
type Listener struct { OnRedis func(*Redis) (more bool) OnHTTP func(*HTTP) (more bool) OnWSData func(*Websocket, []byte) OnWSClose func(*Websocket, []byte) OnFdCount func(int) OnError func(Error) Timeout time.Duration // contains filtered or unexported fields }
func (*Listener) LoadCertPEMs ¶
type Redis ¶
type Redis struct { Conn *Conn // contains filtered or unexported fields }
func (*Redis) WriteArrayBegin ¶
func (*Redis) WriteBulkString ¶
func (*Redis) WriteError ¶
func (*Redis) WriteRawBytes ¶
func (*Redis) WriteSimpleString ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.