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) ServeFastHTTP(ctx *fasthttp.RequestCtx)
- 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
- func (trans *Transport) Abort()
- func (trans *Transport) Compression() bool
- func (trans *Transport) CookieManagerOption() cookie.CookieManagerOption
- func (trans *Transport) KeepAlive() bool
- func (trans *Transport) SetCompression(enable bool)
- func (trans *Transport) SetCookieManagerOption(option cookie.CookieManagerOption)
- func (trans *Transport) SetKeepAlive(enable bool)
- func (trans *Transport) SetTLSClientConfig(config *tls.Config)
- func (trans *Transport) TLSClientConfig() *tls.Config
- func (trans *Transport) Transport(ctx context.Context, request []byte) ([]byte, error)
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 interface{} P3P bool GET bool CrossDomain bool DisableHTTPHeader 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) ServeFastHTTP ¶ added in v3.0.6
func (h *Handler) ServeFastHTTP(ctx *fasthttp.RequestCtx)
ServeFastHTTP implements the fasthttp.RequestHandler.
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.
type Transport ¶
func (*Transport) Compression ¶ added in v3.0.6
Compression returns the compression status
func (*Transport) CookieManagerOption ¶ added in v3.0.6
func (trans *Transport) CookieManagerOption() cookie.CookieManagerOption
CookieManagerOption returns the CookieManagerOption
func (*Transport) SetCompression ¶ added in v3.0.6
SetCompression sets the compression status
func (*Transport) SetCookieManagerOption ¶ added in v3.0.6
func (trans *Transport) SetCookieManagerOption(option cookie.CookieManagerOption)
SetCookieManagerOption sets the CookieManagerOption
func (*Transport) SetKeepAlive ¶ added in v3.0.6
SetKeepAlive sets the keepalive status
func (*Transport) SetTLSClientConfig ¶ added in v3.0.6
SetTLSClientConfig sets the tls.Config
func (*Transport) TLSClientConfig ¶ added in v3.0.6
TLSClientConfig returns the tls.Config