Documentation
¶
Index ¶
- type JSONPHandlerType
- func (hdlr *JSONPHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *JSONPHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *JSONPHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)
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)
Click to show internal directories.
Click to hide internal directories.