Documentation ¶
Index ¶
- func RegisterHandler()
- func RegisterTransport()
- type Handler
- func (h *Handler) AddAccessControlAllowOrigin(origins ...string)
- func (h *Handler) BindContext(ctx context.Context, server core.Server)
- func (h *Handler) ClientAccessPolicyXMLContent() []byte
- func (h *Handler) ClientAccessPolicyXMLFile() string
- func (h *Handler) CrossDomainXMLContent() []byte
- func (h *Handler) CrossDomainXMLFile() string
- func (h *Handler) RemoveAccessControlAllowOrigin(origins ...string)
- func (h *Handler) ServeHTTP(response http.ResponseWriter, request *http.Request)
- func (h *Handler) SetClientAccessPolicyXMLContent(content []byte)
- func (h *Handler) SetClientAccessPolicyXMLFile(filename string)
- func (h *Handler) SetCrossDomainXMLContent(content []byte)
- func (h *Handler) SetCrossDomainXMLFile(filename string)
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandler ¶
func RegisterHandler()
func RegisterTransport ¶
func RegisterTransport()
Types ¶
type Handler ¶
type Handler struct { Service *core.Service OnError func(http.ResponseWriter, *http.Request, error) P3P bool GET bool CrossDomain bool Header http.Header AccessControlAllowOrigins map[string]bool LastModified string Etag string // contains filtered or unexported fields }
func (*Handler) AddAccessControlAllowOrigin ¶
AddAccessControlAllowOrigin add access control allow origin.
func (*Handler) BindContext ¶
BindContext to the http server.
func (*Handler) ClientAccessPolicyXMLContent ¶
ClientAccessPolicyXMLContent return the client access policy xml content.
func (*Handler) ClientAccessPolicyXMLFile ¶
ClientAccessPolicyXMLFile return the client access policy xml file.
func (*Handler) CrossDomainXMLContent ¶
CrossDomainXMLContent return the cross domain xml content.
func (*Handler) CrossDomainXMLFile ¶
CrossDomainXMLFile return the cross domain xml file.
func (*Handler) RemoveAccessControlAllowOrigin ¶
RemoveAccessControlAllowOrigin remove access control allow origin.
func (*Handler) ServeHTTP ¶
func (h *Handler) ServeHTTP(response http.ResponseWriter, request *http.Request)
ServeHTTP implements the http.Handler interface.
func (*Handler) SetClientAccessPolicyXMLContent ¶
SetClientAccessPolicyXMLContent set the client access policy xml content.
func (*Handler) SetClientAccessPolicyXMLFile ¶
SetClientAccessPolicyXMLFile set the client access policy xml file.
func (*Handler) SetCrossDomainXMLContent ¶
SetCrossDomainXMLContent set the cross domain xml content.
func (*Handler) SetCrossDomainXMLFile ¶
SetCrossDomainXMLFile set the cross domain xml file.