-
Notifications
You must be signed in to change notification settings - Fork 0
/
param.go
28 lines (20 loc) · 832 Bytes
/
param.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
package rest
// ParamIn defines parameter location.
type ParamIn string
const (
// ParamInPath indicates path parameters, such as `/users/{id}`.
ParamInPath = ParamIn("path")
// ParamInQuery indicates query parameters, such as `/users?page=10`.
ParamInQuery = ParamIn("query")
// ParamInBody indicates body value, such as `{"id": 10}`.
ParamInBody = ParamIn("json")
// ParamInFormData indicates body form parameters.
ParamInForm = ParamIn("form")
// ParamInFormData indicates body form parameters.
ParamInFormData = ParamIn("formData")
// ParamInCookie indicates cookie parameters, which are passed ParamIn the `Cookie` header,
// such as `Cookie: debug=0; gdpr=2`.
ParamInCookie = ParamIn("cookie")
// ParamInHeader indicates header parameters, such as `X-Header: value`.
ParamInHeader = ParamIn("header")
)