Documentation ¶
Index ¶
- type Server
- func (s *Server) AddHTTPHandle(pattern string, handler http.Handler)
- func (s *Server) AddHTTPHandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
- func (s *Server) Run() error
- func (s *Server) SetHTTPAddr(addr string)
- func (s *Server) SetHTTPHandlerTimeout(t int)
- func (s *Server) SetHTTPIdleTimeout(t int)
- func (s *Server) SetHTTPQuitTimeout(t int)
- func (s *Server) SetHTTPReadTimeout(t int)
- func (s *Server) SetHTTPWriteTimeout(t int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server Server
func (*Server) AddHTTPHandle ¶
AddHTTPHandle 增加http handle
func (*Server) AddHTTPHandleFunc ¶
func (s *Server) AddHTTPHandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
AddHTTPHandleFunc 增加http handle func
func (*Server) SetHTTPHandlerTimeout ¶
SetHTTPHandlerTimeout 设置程序处理超时时间,不包含读写时间
func (*Server) SetHTTPIdleTimeout ¶
SetHTTPIdleTimeout 设置连接空闲超时时间
func (*Server) SetHTTPQuitTimeout ¶
SetHTTPQuitTimeout 设置http退出时间
func (*Server) SetHTTPReadTimeout ¶
SetHTTPReadTimeout 设置读取header+body的整体超时时间
func (*Server) SetHTTPWriteTimeout ¶
SetHTTPWriteTimeout 设置写操作超时时间
Click to show internal directories.
Click to hide internal directories.