bt_http_utils

Crates.iobt_http_utils
lib.rsbt_http_utils
version
sourcesrc
created_at2025-02-01 23:57:28.143607
updated_at2025-02-03 17:25:29.458928
descriptionA simple HTTP wrapper to simplify POST and GET calls. Default headers with set and get headers.
homepagehttps://github.com/bachuetech/bt_http_utils
repositoryhttps://github.com/bachuetech/bt_http_utils
max_upload_size
id1539088
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(bachuetech)

documentation

README

Project Title

BT HTTP UTILS

Description

A simple HTTP wrapper to simplify POST and GET calls.

Usage

    let http_client = HttpClient::new(false);

    let resp_get = http_client.get(&url).await; 
    let resp_post_txt = http_client.post(&url, body, ContentType::TEXT).await;
    let resp_post_json = http_client.post(&url, body, ContentType::JSON).await;

    ///Fields available
    resp.unwrap().body;
    resp.unwrap().header;
    resp.unwrap().is_error();
    resp.unwrap().status_code;

Version History

  • 0.1.0
    • Initial Release
  • 0.2.0
    • Include set and get default headers

License

GPL-3.0-only

Commit count: 5

cargo fmt