MCPcopy Create free account
hub / github.com/kataras/iris / RequestPath

Method RequestPath

context/context.go:931–937  ·  view source on GitHub ↗

RequestPath returns the full request path, based on the 'escape'.

(escape bool)

Source from the content-addressed store, hash-verified

929// RequestPath returns the full request path,
930// based on the 'escape'.
931func (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
939const sufscheme = "://"
940

Callers 1

PathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected