Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpModule ¶
func NewHttpServing ¶
func NewHttpServing() *http_access_log
Types ¶
type HttpModule ¶
type HttpModule struct{}
func (*HttpModule) CreateServer ¶
func (m *HttpModule) CreateServer(jsCallback *js.EcmaObject, isFastCGI bool) (*HttpServer, error)
func (*HttpModule) Request ¶
func (m *HttpModule) Request(options map[string]interface{}, jsCallback *js.EcmaObject) (*reqResult, error)
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func CreateHttpServer ¶
func CreateHttpServer(jsCallback *js.EcmaObject, isFastCGI bool) *HttpServer
func (*HttpServer) Close ¶
func (s *HttpServer) Close()
type JSRequest ¶
type JSRequest struct { Method string Uri string Path string HttpVersion string Headers map[string][]string Host string RemoteAddr string Auth string RawQuery string Hash string // contains filtered or unexported fields }
func (*JSRequest) GetLocalTime ¶
type JSResponse ¶
type JSResponse struct {
// contains filtered or unexported fields
}
func (*JSResponse) End ¶
func (resp *JSResponse) End(data []byte, encoding string)
func (*JSResponse) SetHeader ¶
func (resp *JSResponse) SetHeader(key string, value interface{})
func (*JSResponse) Write ¶
func (resp *JSResponse) Write(chunk []byte, encoding string)
func (*JSResponse) WriteHead ¶
func (resp *JSResponse) WriteHead(statusCode int, headers map[string]interface{})
Click to show internal directories.
Click to hide internal directories.