extern crate hyper;
#[cfg(feature = "ssl")]
extern crate hyper_native_tls;
#[cfg(feature = "with_json")]
extern crate json;
mod request;
mod response;
mod tojson;
pub use request::Request;
pub use response::Response;
pub use response::{Codes, StatusCode};
pub use tojson::ToJson;
pub type Result = hyper::Result<Response>;
pub type Error = hyper::error::Error;
pub fn get<T: AsRef<str>>(url: T) -> Result {
Request::default().get(url.as_ref())
}
pub fn post<T: AsRef<str>>(url: T) -> Result {
Request::default().post(url.as_ref())
}
pub fn put<T: AsRef<str>>(url: T) -> Result {
Request::default().put(url.as_ref())
}
pub fn head<T: AsRef<str>>(url: T) -> Result {
Request::default().head(url.as_ref())
}
pub fn delete<T: AsRef<str>>(url: T) -> Result {
Request::default().delete(url.as_ref())
}