bevy_request

Crates.iobevy_request
lib.rsbevy_request
version0.1.0-alpha.1
created_at2026-01-18 10:36:04.36713+00
updated_at2026-01-18 10:48:29.319466+00
descriptionA HTTP client library for bevy
homepagehttps://github.com/xbwwj/bevy-request
repository
max_upload_size
id2052184
size108,613
Xubai Wang (xbwwj)

documentation

https://docs.rs/bevy-request

README

bevy-request

Bevy native http client.

This library is still in its early stage.

Example

This is a minimal example which makes a get request to https://example.com.

fn get_example_com(mut commands: Commands) {
    commands
        // request as components
        .spawn((
            GET,
            Url("https://example.com".to_string()),
            GetContent::Text,
        ))
        // response as entity events
        .observe(|text: On<ResponseText>| {
            println!("text:\n{}", text.text);
        });
}

Features

  • Bevy-ish style using entity, component and entity event
  • Support multiple Formats: bytes, text and (TODO) json
  • Asynchronous content handling
  • TODO: WebAssembly support
  • TODO: platform native http stack
Commit count: 0

cargo fmt