Struct pony::pony::Pony
[−]
[src]
pub struct Pony { pub gets: HashMap<String, Callback>, pub posts: HashMap<String, Callback>, pub puts: HashMap<String, Callback>, pub deletes: HashMap<String, Callback>, pub static_path: String, pub static_enabled: bool, pub not_found_path: String, pub custom_not_found: bool, pub known_extensions: HashSet<String>, }
A set of hyper http settings
Fields
gets: HashMap<String, Callback>
posts: HashMap<String, Callback>
puts: HashMap<String, Callback>
deletes: HashMap<String, Callback>
static_path: String
static_enabled: bool
not_found_path: String
custom_not_found: bool
known_extensions: HashSet<String>
Trait Implementations
impl Service for Pony
[src]
type Request = Request
Requests handled by the service.
type Response = Response
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Box<Future<Item = Response, Error = Error>>
The future response value.
fn call(&self, req: Request) -> Self::Future
[src]
This is used by hyper to respond to any requests