RequestPath returns the full request path, based on the 'escape'.
(escape bool)
| 929 | // RequestPath returns the full request path, |
| 930 | // based on the 'escape'. |
| 931 | func (ctx *Context) RequestPath(escape bool) string { |
| 932 | if escape { |
| 933 | return ctx.request.URL.EscapedPath() // DecodeQuery(ctx.request.URL.EscapedPath()) |
| 934 | } |
| 935 | |
| 936 | return ctx.request.URL.Path // RawPath returns empty, requesturi can be used instead also. |
| 937 | } |
| 938 | |
| 939 | const sufscheme = "://" |
| 940 |