[−][src]Struct krill::daemon::http::HttpResponse
Implementations
impl HttpResponse
[src]
pub fn response(self) -> Response<Body>
[src]
pub fn json<O: Serialize>(object: &O) -> Self
[src]
pub fn text(body: Vec<u8>) -> Self
[src]
pub fn xml(body: Vec<u8>) -> Self
[src]
pub fn xml_with_cache(body: Vec<u8>, seconds: usize) -> Self
[src]
pub fn rfc8181(body: Vec<u8>) -> Self
[src]
pub fn rfc6492(body: Vec<u8>) -> Self
[src]
pub fn cert(body: Vec<u8>) -> Self
[src]
pub fn html(content: &[u8]) -> Self
[src]
pub fn fav(content: &[u8]) -> Self
[src]
pub fn js(content: &[u8]) -> Self
[src]
pub fn css(content: &[u8]) -> Self
[src]
pub fn svg(content: &[u8]) -> Self
[src]
pub fn woff(content: &[u8]) -> Self
[src]
pub fn woff2(content: &[u8]) -> Self
[src]
pub fn error(error: Error) -> Self
[src]
pub fn ok() -> Self
[src]
pub fn not_found() -> Self
[src]
pub fn forbidden() -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl !UnwindSafe for HttpResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,