diff options
| author | Bobby <[email protected]> | 2025-12-19 18:01:24 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-12-19 18:01:24 +0530 |
| commit | b1bfec1ce2987d9fe0cc52e5ae9115977fdf8c24 (patch) | |
| tree | 7080b7dc97522ffe0837a1e0b2965489d7e67664 /types/http.go | |
| parent | 767297e28d47ee9cf3722054e41caa837f0e68d2 (diff) | |
| download | lain-b1bfec1ce2987d9fe0cc52e5ae9115977fdf8c24.tar.xz lain-b1bfec1ce2987d9fe0cc52e5ae9115977fdf8c24.zip | |
added utils, templates, routes, types, middleware, processors and a whole lot of things for a basic login page
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 +} |
