Documentation ¶
Index ¶
- func RawJSONBody(mode bool)
- func SetGzipLevel(level int)
- type API
- func (a *API) AllowCORS(sites ...string) *API
- func (a *API) EnableGZIP() *API
- func (a *API) Endpoint() string
- func (a *API) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (a *API) Spec(f *message.Printer) []hap.ApiSpec
- func (a *API) WithCorsHeaders(heads ...string) *API
- func (a *API) WithCorsMethods(verbs ...string) *API
- func (a *API) WithHandlers(hs ...*handler.Handler) *API
- func (a *API) WithRawJSONBody() *API
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.