23 lines
315 B
Go
23 lines
315 B
Go
|
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
|
||
|
}
|