Pterodactyl::HttpClient
Inherits Reference < Object
Constants
HTTP_METHODS = ["get", "delete", "post", "put", "patch"] of ::String
Constructors
new(base_url : String, token : String, use_content : Bool = true)
SourceInstance methods
base_url
Sourcebase_url=(base_url : String)
Sourcedelete(path : String, body : String = "") : HTTP::Client::Response
Performs a DELETE on the path with the given body
get(path : String, body : String = "") : HTTP::Client::Response
Performs a GET on the path with the given body
patch(path : String, body : String = "") : HTTP::Client::Response
Performs a PATCH on the path with the given body
post(path : String, body : String = "") : HTTP::Client::Response
Performs a POST on the path with the given body
put(path : String, body : String = "") : HTTP::Client::Response
Performs a PUT on the path with the given body
token
Sourcetoken=(token : String)
Sourceuse_content
Sourceuse_content=(use_content : Bool)
Source