bevy_request 0.1.0-alpha.1

A HTTP client library for bevy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use bevy::prelude::*;

/// How to cope with response body.
#[derive(Component, Clone, Copy, Debug)]
pub enum GetContent
// <T: DeserializeOwned = ()>
{
    Bytes,
    Text,
    // Json(PhantomData<T>),
}

// In case we will add json and generic in future
// impl GetContent<()> {
//     pub const BYTES: Self = Self::Bytes;
//     pub const TEXT: Self = Self::Text;
// }