Module http

Module http 

Source
Expand description

HTTP client for making external requests.

Allows plugins to make HTTP requests to external APIs.

§Example

use orbis_plugin_api::sdk::http;

// Simple GET request
let response = http::get("https://api.example.com/data")?;

// POST with JSON body
let response = http::post("https://api.example.com/users")
    .json(&CreateUser { name: "John" })?
    .send()?;

// Parse response as JSON
let user: User = response.json()?;

Structs§

Request
HTTP request builder
Response
HTTP response

Enums§

Method
HTTP method

Functions§

delete
Create a DELETE request
get
Create a GET request
patch
Create a PATCH request
post
Create a POST request
put
Create a PUT request