Documentation
¶
Index ¶
- Constants
- func Enable(ctx *commons.RuntimeContext)
- func WrapClient(runtime *goja.Runtime) goja.Value
- func WrapClientResponse(runtime *goja.Runtime, data *httputils.ResponseData) goja.Value
- func WrapServer(runtime *goja.Runtime) goja.Value
- type JsFile
- type JsHttpClient
- type JsHttpClientResponse
- type JsHttpNext
- type JsHttpRequest
- type JsHttpResponse
- type JsHttpServer
- type JsHttpServerCallback
- type ModuleHttp
Constants ¶
View Source
const NAME = "http"
Variables ¶
This section is empty.
Functions ¶
func Enable ¶
func Enable(ctx *commons.RuntimeContext)
func WrapClientResponse ¶
Types ¶
type JsHttpClient ¶
type JsHttpClient struct {
// contains filtered or unexported fields
}
type JsHttpClientResponse ¶
type JsHttpClientResponse struct {
// contains filtered or unexported fields
}
type JsHttpNext ¶
type JsHttpNext struct {
// contains filtered or unexported fields
}
func WrapNext ¶
func WrapNext(runtime *goja.Runtime, ctx *fiber.Ctx) *JsHttpNext
func (*JsHttpNext) NextFunc ¶
func (instance *JsHttpNext) NextFunc() goja.Value
func (*JsHttpNext) Value ¶
func (instance *JsHttpNext) Value() goja.Value
type JsHttpRequest ¶
type JsHttpRequest struct {
// contains filtered or unexported fields
}
func WrapRequest ¶
func WrapRequest(runtime *goja.Runtime, data []byte, ctx *fiber.Ctx) *JsHttpRequest
func (*JsHttpRequest) Value ¶
func (instance *JsHttpRequest) Value() goja.Value
type JsHttpResponse ¶
type JsHttpResponse struct {
// contains filtered or unexported fields
}
func WrapResponse ¶
func WrapResponse(runtime *goja.Runtime, data []byte, ctx interface{}) *JsHttpResponse
func (*JsHttpResponse) Value ¶
func (instance *JsHttpResponse) Value() goja.Value
type JsHttpServer ¶
type JsHttpServer struct {
// contains filtered or unexported fields
}
type JsHttpServerCallback ¶
type JsHttpServerCallback struct {
// contains filtered or unexported fields
}
func NewServerCallback ¶
func (*JsHttpServerCallback) HandleRoute ¶
func (instance *JsHttpServerCallback) HandleRoute(ctx *fiber.Ctx) (err error)
func (*JsHttpServerCallback) HandleWs ¶
func (instance *JsHttpServerCallback) HandleWs(conn *httpserver.HttpWebsocketConn)
type ModuleHttp ¶
type ModuleHttp struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.