summaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-01-20 14:19:25 +0530
committerBobby <[email protected]>2026-01-20 14:19:25 +0530
commita04faab2a7c031b95e6e7553f9921c3bada2bc08 (patch)
tree91c77399eac06aeb7417ed367123321f223bcfd7 /types
parent97459ee6173299aa352ac29b2a77dd8df7e3ab3d (diff)
downloadcafe-a04faab2a7c031b95e6e7553f9921c3bada2bc08.tar.xz
cafe-a04faab2a7c031b95e6e7553f9921c3bada2bc08.zip
Implemented processors and add HTTPRequest and HTTPQueryParam types and Created utility functions for building request metadata.
Diffstat (limited to 'types')
-rw-r--r--types/http.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/types/http.go b/types/http.go
index bc85d99..5fac0e8 100644
--- a/types/http.go
+++ b/types/http.go
@@ -11,3 +11,18 @@ const (
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
+}