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>, pub static_logging: bool, pub use_gzip: bool, pub etag: ETag, }
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>
static_logging: bool
use_gzip: bool
etag: ETag
Trait Implementations
impl Service for Pony
[src]
impl Service for Pony
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 = HyperResult
The future response value.
fn call(&self, req: Request) -> Self::Future
[src]
fn call(&self, req: Request) -> Self::Future
This is used by hyper to respond to any requests