1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-22 20:06:21 +02:00
echo/engine/fasthttp/url.go

32 lines
430 B
Go
Raw Normal View History

// +build !appengine
package fasthttp
import "github.com/valyala/fasthttp"
type (
URL struct {
url *fasthttp.URI
}
)
func (u *URL) SetPath(path string) {
// return string(u.URI.Path())
}
func (u *URL) Path() string {
return string(u.url.Path())
}
func (u *URL) QueryValue(name string) string {
return ""
}
func (u *URL) Object() interface{} {
return u.url
}
func (u *URL) reset(url *fasthttp.URI) {
u.url = url
}