I hereby claim:
- I am vcapra1 on github.
- I am vcapra1 (https://keybase.io/vcapra1) on keybase.
- I have a public key ASAJP73lWD9DcDeyhAps5qUPp_m3B8ju9Tss8c1iOeSoIwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
use rocket::{request::FromRequest, Outcome, Request}; | |
pub struct WWWHost; | |
pub struct AAAHost; | |
impl<'a, 'r> FromRequest<'a, 'r> for WWWHost { | |
type Error = (); | |
fn from_request(request: &'a Request<'r>) -> rocket::request::Outcome<Self, Self::Error> { | |
if let Some(hostname) = request.headers().get_one("host") { |
[package] | |
name = "my-app" | |
version = "0.1.0" | |
authors = ["vinnie <[email protected]>"] | |
edition = "2018" | |
[dependencies] | |
rocket = "0.4.0" |