2016-02-09 11:43:00 -08:00
|
|
|
// +build !appengine
|
|
|
|
|
2016-01-28 23:46:11 -08:00
|
|
|
package fasthttp
|
|
|
|
|
|
|
|
import "github.com/valyala/fasthttp"
|
|
|
|
|
|
|
|
type (
|
|
|
|
URL struct {
|
2016-02-08 22:17:20 -08:00
|
|
|
url *fasthttp.URI
|
2016-01-28 23:46:11 -08:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (u *URL) SetPath(path string) {
|
|
|
|
// return string(u.URI.Path())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (u *URL) Path() string {
|
2016-02-08 22:17:20 -08:00
|
|
|
return string(u.url.Path())
|
2016-01-28 23:46:11 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (u *URL) QueryValue(name string) string {
|
|
|
|
return ""
|
|
|
|
}
|
2016-02-20 14:04:09 -08:00
|
|
|
|
|
|
|
func (u *URL) Object() interface{} {
|
|
|
|
return u.url
|
|
|
|
}
|
2016-02-21 19:58:19 -08:00
|
|
|
|
|
|
|
func (u *URL) reset(url *fasthttp.URI) {
|
|
|
|
u.url = url
|
|
|
|
}
|