path(Req :: cowboy_req:req()) -> Path :: binary()
cowboy_req:path - URI path
path(Req :: cowboy_req:req()) -> Path :: binary()
Return the path of the effective request URI.
The path can also be obtained using pattern matching:
#{path := Path} = Req.
The Req object.
The path is returned as a binary string. It is case sensitive.
2.0: Only the path is returned, it is no longer wrapped in a tuple.
1.0: Function introduced.
Path = cowboy_req:path(Req).