JSONp

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONPHandlerType

type JSONPHandlerType struct {
	Next              http.Handler //
	Paths             []string     // Paths that this will work for
	CallbackMustMatch string       // Validation regular expression for the callback parameter - default is a JavaScript ID
	CallbackName      string       // Name of the parameter that is used to get the callback name, default "callback"
	LineNo            int          //
	// contains filtered or unexported fields
}

func NewJSONPServer

func NewJSONPServer(n http.Handler, p []string, reMatch string) *JSONPHandlerType

func (*JSONPHandlerType) InitializeWithConfigData

func (hdlr *JSONPHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)

func (*JSONPHandlerType) PreValidate

func (hdlr *JSONPHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)

func (*JSONPHandlerType) ServeHTTP

func (hdlr *JSONPHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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