Documentation ¶
Index ¶
- func CommitMutating(t *testing.T, r *http.Request, execute HTTPImplementer, token string, ...)
- func Handle(endpoint string, m Methods)
- func HandleCORSPreflight(w io.Writer, r *http.Request) *logging.StatusError
- func HandleMethod(m HTTPImplementer, w http.ResponseWriter, r *http.Request)
- func HandleWebsocket(endpoint string, method WebSocketEstablisher)
- func ReturnMethodNotAllowed(w io.Writer, r *http.Request) *logging.StatusError
- type HTTPImplementer
- type Methods
- type WebSocketEstablisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitMutating ¶
func HandleCORSPreflight ¶
func HandleMethod ¶
func HandleMethod(m HTTPImplementer, w http.ResponseWriter, r *http.Request)
func HandleWebsocket ¶
func HandleWebsocket(endpoint string, method WebSocketEstablisher)
func ReturnMethodNotAllowed ¶
Types ¶
type HTTPImplementer ¶
type Methods ¶
type Methods struct { GET HTTPImplementer POST HTTPImplementer PUT HTTPImplementer DELETE HTTPImplementer }
type WebSocketEstablisher ¶
type WebSocketEstablisher = func(http.ResponseWriter, *http.Request) *logging.StatusError
Click to show internal directories.
Click to hide internal directories.