Age | Commit message (Collapse) | Author |
|
Use the `REQUEST_URI` param instead of `SCRIPT_NAME` to get the request
path.
Using `SCRIPT_NAME` caused issues with redirects.
If my FastCGI program has the file name `script.fcgi`, and I set up a
redirect from `/script` to `/script.fcgi`, then `path()` should return
`/script` when using that path.
In the above case, because we were using the `SCRIPT_NAME` param,
`path()` would return `/script.fcgi` instead.
This caused routes defined with a `RouteBuilder` to not match correctly.
Now that we're using `REQUEST_URI`, we need to trim the query string and
hash, which are included in the param value, since we only want the URI
path.
|
|
The latest version of Conduit, 0.9.0-alpha.3, adds a new `path_mut`
method.
|
|
|
|
Since we don't need to add any additional context or messages here, we
can turn off error context for these variants and shorten error
propagation.
|
|
Write doc comments for functions and types, and include a short example.
|
|
Now that we have a `request` module, the "Request" part of the name is
redundant.
|
|
Turns out I didn't need to make it public as we only need to use it
within the module.
|
|
Want to separate request and server code.
|