http

package
v0.3.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

README

HTTP

Dependencies

go get -u github.com/gofiber/fiber
go get -u github.com/gofiber/recover
go get -u github.com/gofiber/cors
go get -u github.com/gofiber/compression
go get -u github.com/gofiber/limiter
go get -u github.com/gofiber/requestid

go get -u github.com/gofiber/websocket

Documentation

Index

Constants

View Source
const NAME = "http"

Variables

This section is empty.

Functions

func Enable

func Enable(ctx *commons.RuntimeContext)

func WrapClient

func WrapClient(runtime *goja.Runtime) goja.Value

func WrapClientResponse

func WrapClientResponse(runtime *goja.Runtime, data *httputils.ResponseData) goja.Value

func WrapServer

func WrapServer(runtime *goja.Runtime) goja.Value

Types

type JsFile

type JsFile struct {
	// contains filtered or unexported fields
}

func WrapFile

func WrapFile(runtime *goja.Runtime, group string, ctx *fiber.Ctx, file *multipart.FileHeader) *JsFile

func (*JsFile) Value

func (instance *JsFile) Value() goja.Value

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 NewServerCallback(runtime *goja.Runtime, this goja.Value, path string, callback goja.Callable) *JsHttpServerCallback

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL