mirror of
https://github.com/labstack/echo.git
synced 2025-01-10 00:28:23 +02:00
688293b5ed
Signed-off-by: Vishal Rana <vr@labstack.com>
30 lines
421 B
Go
30 lines
421 B
Go
package fasthttp
|
|
|
|
import "github.com/valyala/fasthttp"
|
|
|
|
type (
|
|
URL struct {
|
|
*fasthttp.URI
|
|
}
|
|
)
|
|
|
|
func (u *URL) Scheme() string {
|
|
return string(u.URI.Scheme())
|
|
}
|
|
|
|
func (u *URL) Host() string {
|
|
return string(u.URI.Host())
|
|
}
|
|
|
|
func (u *URL) SetPath(path string) {
|
|
// return string(u.URI.Path())
|
|
}
|
|
|
|
func (u *URL) Path() string {
|
|
return string(u.URI.Path())
|
|
}
|
|
|
|
func (u *URL) QueryValue(name string) string {
|
|
return ""
|
|
}
|