mirror of
https://github.com/labstack/echo.git
synced 2024-11-30 08:46:41 +02:00
89551ddfd9
Signed-off-by: Vishal Rana <vr@labstack.com>
32 lines
430 B
Go
32 lines
430 B
Go
// +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
|
|
}
|