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.
Path = cowboy_req:path(Req).
cowboy_req(3), cowboy_req:binding(3), cowboy_req:bindings(3), cowboy_req:path_info(3)
Support my work on Cowboy, Ranch, Gun and Erlang.mk via GitHub Sponsors. The funds cover domain names and development tools.