cloudflare-rs 0.6.5

Rust library bindings for Cloudflares v4 API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::framework::endpoint::Method;
use reqwest;

pub fn match_reqwest_method(method: Method) -> reqwest::Method {
    match method {
        Method::Get => reqwest::Method::GET,
        Method::Post => reqwest::Method::POST,
        Method::Delete => reqwest::Method::DELETE,
        Method::Put => reqwest::Method::PUT,
        Method::Patch => reqwest::Method::PATCH,
    }
}