1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-30 08:46:41 +02:00
echo/engine/fasthttp/url.go
Vishal Rana 89551ddfd9 Dropped URL#Scheme,URL#Host and added Request#TLS
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-22 21:13:08 -08:00

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
}