diff options
Diffstat (limited to 'types/http.go')
| -rw-r--r-- | types/http.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/types/http.go b/types/http.go new file mode 100644 index 0000000..5fac0e8 --- /dev/null +++ b/types/http.go @@ -0,0 +1,28 @@ +package types + +type HTTPMethod string + +const ( + GET HTTPMethod = "GET" + POST HTTPMethod = "POST" + PUT HTTPMethod = "PUT" + PATCH HTTPMethod = "PATCH" + DELETE HTTPMethod = "DELETE" + OPTIONS HTTPMethod = "OPTIONS" + HEAD HTTPMethod = "HEAD" +) + +type HTTPQueryParam struct { + Key string + Value string +} + +type HTTPRequest struct { + Path string + Method string + Query []HTTPQueryParam + Params []HTTPQueryParam + QueryString string + IP string + URL string +} |
