-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathHttpMethod.go
More file actions
25 lines (21 loc) · 1.03 KB
/
HttpMethod.go
File metadata and controls
25 lines (21 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package awslambda
// All http request methods.
type HttpMethod string
const (
// The GET method requests a representation of the specified resource.
HttpMethod_GET HttpMethod = "GET"
// The PUT method replaces all current representations of the target resource with the request payload.
HttpMethod_PUT HttpMethod = "PUT"
// The HEAD method asks for a response identical to that of a GET request, but without the response body.
HttpMethod_HEAD HttpMethod = "HEAD"
// The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.
HttpMethod_POST HttpMethod = "POST"
// The DELETE method deletes the specified resource.
HttpMethod_DELETE HttpMethod = "DELETE"
// The PATCH method applies partial modifications to a resource.
HttpMethod_PATCH HttpMethod = "PATCH"
// The OPTIONS method describes the communication options for the target resource.
HttpMethod_OPTIONS HttpMethod = "OPTIONS"
// The wildcard entry to allow all methods.
HttpMethod_ALL HttpMethod = "ALL"
)