2016-02-09 21:43:00 +02:00
|
|
|
// +build !appengine
|
|
|
|
|
2016-01-29 09:46:11 +02:00
|
|
|
package fasthttp
|
|
|
|
|
|
|
|
import "github.com/valyala/fasthttp"
|
|
|
|
|
|
|
|
type (
|
|
|
|
URL struct {
|
2016-02-09 08:17:20 +02:00
|
|
|
url *fasthttp.URI
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (u *URL) Scheme() string {
|
2016-02-09 08:17:20 +02:00
|
|
|
return string(u.url.Scheme())
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (u *URL) Host() string {
|
2016-02-09 08:17:20 +02:00
|
|
|
return string(u.url.Host())
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (u *URL) SetPath(path string) {
|
|
|
|
// return string(u.URI.Path())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (u *URL) Path() string {
|
2016-02-09 08:17:20 +02:00
|
|
|
return string(u.url.Path())
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (u *URL) QueryValue(name string) string {
|
|
|
|
return ""
|
|
|
|
}
|