Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFileReader ¶ added in v1.39.0
func AddPrinter ¶
func AddPrinter(vm *goja.Runtime, logger *clog.CondLogger) error
func ConfigureRuntime ¶ added in v1.40.0
func GetEnvSharedDynamicObject ¶ added in v1.40.0
Types ¶
type JSDstInfo ¶
type JSRequestInfo ¶
type JSRequestInfo struct {
Method string `json:"method"`
URL string `json:"url"`
Proto string `json:"proto"`
ProtoMajor int `json:"protoMajor"`
ProtoMinor int `json:"protoMinor"`
Header http.Header `json:"header"`
ContentLength int64 `json:"contentLength"`
TransferEncoding []string `json:"transferEncoding"`
Host string `json:"host"`
RemoteAddr string `json:"remoteAddr"`
RequestURI string `json:"requestURI"`
}
func JSRequestInfoFromRequest ¶
func JSRequestInfoFromRequest(req *http.Request) *JSRequestInfo
Click to show internal directories.
Click to hide internal directories.