This commit is contained in:
amy 2024-07-14 06:19:21 +03:30
parent aff3757618
commit cc8322f221
9 changed files with 136 additions and 38 deletions

View file

@ -0,0 +1,22 @@
package Constants
type Method string
type Response string
const (
UNKNOWN Method = "wtf bro"
GET Method = "GET"
POST Method = "POST"
)
const (
OK Response = "OK"
NOTFOUND Response = "NOTFOUND"
)
type Intent struct {
Method Method
Path string
Version string
Headers map[string]string
}