mirror of
https://github.com/labstack/echo.git
synced 2025-01-10 00:28:23 +02:00
bf97da9a16
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
32 lines
447 B
Go
32 lines
447 B
Go
// +build !appengine
|
|
|
|
package fasthttp
|
|
|
|
import "github.com/valyala/fasthttp"
|
|
|
|
type (
|
|
URL struct {
|
|
url *fasthttp.URI
|
|
}
|
|
)
|
|
|
|
func (u *URL) Scheme() string {
|
|
return string(u.url.Scheme())
|
|
}
|
|
|
|
func (u *URL) Host() string {
|
|
return string(u.url.Host())
|
|
}
|
|
|
|
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 ""
|
|
}
|