Age | Commit message (Collapse) | Author |
|
|
|
|
|
The latest version of Conduit, 0.9.0-alpha.3, adds a new `path_mut`
method.
|
|
|
|
Since we're only using it in an example binary, it shouldn't be a main
library dependency.
|
|
|
|
Provide a mechanism to get detailed error messages when 500 internal
server errors happen.
We don't want to expose any detailed error information to clients, but
it would be useful for administrators to know the cause of any errors.
|
|
Try making a server with more than one route.
|
|
Trying out the Conduit API, as it seems like nice interface that I can
plug the FastCGI server into.
To do this, I need a server type, and some way to convert a
`fastcgi::Request` into a `conduit::Request`. Doing this with a new
local type that I can use to implement `conduit::RequestExt`.
|
|
The HTTP headers from `fastcgi` come with keys in the following format:
"HTTP_USER_AGENT", "HTTP_ACCEPT_LANGUAGE".
Since most headers use an uppercase first letter of a word with hyphen
word separators, make the conversion by:
1. Removing the `HTTP_` prefix
2. Changing `_` to `-`
3. Making the first letter of each word uppercase using the Inflector
crate
|
|
|
|
|
|
Created with:
$ cargo init --lib
|