deduplicate

This commit is contained in:
6543 2022-11-12 13:10:07 +01:00
parent f13feec8bf
commit 5f2f073a73
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
2 changed files with 13 additions and 13 deletions

View file

@ -42,10 +42,6 @@ func (c *Context) String(raw string, status ...int) {
_, _ = c.RespWriter.Write([]byte(raw))
}
func (c *Context) IsMethod(m string) bool {
return c.Req.Method == m
}
func (c *Context) Redirect(uri string, statusCode int) {
http.Redirect(c.RespWriter, c.Req, uri, statusCode)
}