Class BlazingRequest
java.lang.Object
blazing.https.BlazingRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Result<String, IOException> Sends a DELETE request to the target urlstatic Result<String, IOException> Sends a GET request to the target urlstatic Result<String, IOException> Sends a HEAD request to the target urlstatic Result<String, IOException> Sends a PATCH request to the target url with the args as a payload and allows for a specific content typestatic Result<String, IOException> Sends a PATCH request to the target url with the args as a payload.static Result<String, IOException> Sends a POST request to the target url with the args string as a payload.static Result<String, IOException> Sends a POST request to the target url with the args string as a payload and allows for a specific content typestatic Result<String, IOException> Sends a POST request to the target url with the args as a payload and allows for a specific content typestatic Result<String, IOException> Sends a POST request to the target url with the args as a payload.static Result<String, IOException> Sends a PUT request to the target url with the args as a payload and allows for a specific content typestatic Result<String, IOException> Sends a PUT request to the target url with the args as a payload.
-
Constructor Details
-
BlazingRequest
public BlazingRequest()
-
-
Method Details
-
post
Sends a POST request to the target url with the args as a payload. The default content type is "application/x-www-form-urlencoded; charset=UTF-8"- Parameters:
url-args-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-
post
Sends a POST request to the target url with the args string as a payload. The default content type is "application/x-www-form-urlencoded; charset=UTF-8"- Parameters:
url-args-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-
post
Sends a POST request to the target url with the args as a payload and allows for a specific content type- Parameters:
url-content_type-args-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-
post
Sends a POST request to the target url with the args string as a payload and allows for a specific content type- Parameters:
url-content_type-args-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-
put
Sends a PUT request to the target url with the args as a payload. The default content type is "application/x-www-form-urlencoded; charset=UTF-8"- Parameters:
url-args-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-
put
Sends a PUT request to the target url with the args as a payload and allows for a specific content type- Parameters:
url-content_type-args-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-
delete
Sends a DELETE request to the target url- Parameters:
url-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-
get
Sends a GET request to the target url- Parameters:
url-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-
patch
Sends a PATCH request to the target url with the args as a payload. The default content type is "application/x-www-form-urlencoded; charset=UTF-8"- Parameters:
url-args-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-
patch
Sends a PATCH request to the target url with the args as a payload and allows for a specific content type- Parameters:
url-content_type-args-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-
head
Sends a HEAD request to the target url- Parameters:
url-- Returns:
- a Result Object that contains the data response or an IOException if there was an error. Status 404 is also an error.
-