discord_gleam/http/request
This module contains functions to create http requests to discord
Values
pub fn new(method: Method, path: String) -> Request(String)
Create a base request to discord
pub fn new_auth(
method: Method,
path: String,
token: String,
) -> Request(String)
Create an authenticated request
pub fn new_auth_with_body(
method: Method,
path: String,
token: String,
data: String,
) -> Request(String)
Create an authenticated request, with a body
pub fn new_auth_with_header(
method: Method,
path: String,
token: String,
header: #(String, String),
) -> Request(String)
Create an authenticated request with a custom header
pub fn new_with_body(
method: Method,
path: String,
data: String,
) -> Request(String)
Create an unauthenticated request, with a body