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) 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 ""
|
|
|
|
}
|
2016-02-21 00:04:09 +02:00
|
|
|
|
|
|
|
func (u *URL) Object() interface{} {
|
|
|
|
return u.url
|
|
|
|
}
|
2016-02-22 05:58:19 +02:00
|
|
|
|
|
|
|
func (u *URL) reset(url *fasthttp.URI) {
|
|
|
|
u.url = url
|
|
|
|
}
|