amoeba 1.0.0

A lightweight HTTP API library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::ContentType;

#[derive(Debug)]
pub struct Body {
    pub content_type: ContentType,
    pub data: Vec<u8>,
}

impl Body {
    pub fn new(content_type: ContentType, data: Vec<u8>) -> Self {
        Body { content_type, data }
    }
}