Skip to content

xbwwj/bevy-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Bevy native HTTP client.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages