-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathmain.go
More file actions
16 lines (11 loc) · 658 Bytes
/
Copy pathmain.go
File metadata and controls
16 lines (11 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package nethttp
import (
"context"
"net/http"
)
type StrictHTTPHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (response interface{}, err error)
type StrictHTTPMiddlewareFunc func(f StrictHTTPHandlerFunc, operationID string) StrictHTTPHandlerFunc
// Deprecated: Use StrictHTTPHandlerFunc instead.
type StrictHttpHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (response interface{}, err error)
// Deprecated: Use StrictHTTPMiddlewareFunc instead.
type StrictHttpMiddlewareFunc func(f StrictHttpHandlerFunc, operationID string) StrictHttpHandlerFunc