euv-core 0.37.2

A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

/// The result of a completed HTTP request.
///
/// The body is kept as the raw bytes the server sent, and the status is the
/// one the server answered with, so a caller can decide what a non-2xx
/// answer means instead of having it thrown away.
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct FetchResponse {
    /// The HTTP status the server answered with.
    #[get(type(copy))]
    #[get(pub(crate))]
    status: u16,
    /// The response body as raw bytes.
    #[get(pub(crate))]
    body: Vec<u8>,
}