-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbarrel.go
39 lines (34 loc) · 1006 Bytes
/
barrel.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package http
import "net/http"
type (
Client = http.Client
Request = http.Request
Response = http.Response
ResponseWriter = http.ResponseWriter
RoundTripper = http.RoundTripper
Transport = http.Transport
)
var (
NoBody = http.NoBody
ListenAndServe = http.ListenAndServe
)
const (
MethodConnect = http.MethodConnect
MethodDelete = http.MethodDelete
MethodGet = http.MethodGet
MethodHead = http.MethodHead
MethodOptions = http.MethodOptions
MethodPatch = http.MethodPatch
MethodPost = http.MethodPost
MethodPut = http.MethodPut
MethodTrace = http.MethodTrace
)
const (
StatusBadRequest = http.StatusBadRequest
StatusForbidden = http.StatusForbidden
StatusInternalServerError = http.StatusInternalServerError
StatusNotAcceptable = http.StatusNotAcceptable
StatusNotFound = http.StatusNotFound
StatusOK = http.StatusOK
StatusUnauthorized = http.StatusUnauthorized
)