[8:14] (extern: com.lehman.aussom.stdlib.AussomHttp) extends: object
Http class implements basic HTTP requests.
setTrustAllCerts (bool TrustAllCerts
)
Sets the trust all certs flag and resets the HTTP client. Setting to true isn't recommended for production environments.
TrustAllCerts
is a bool with true to trust all certificates and false to not.this
objectget (string Url
)
Makes a HTTP GET request to the provided Url and returns a response object.
Url
is a string with the URL to request.A
HTTP response object.post (string Url, string Content, string MediaType = "application/json; charset=utf-8"
)
Makes a HTTP POST request with the provided arguments.
Url
is a string with the URL to request.Content
is a string with the POST body content.MediaType
is a string with the media type. It defaults to application/json and charset utf-8.A
HTTP response object.put (string Url, string Content, string MediaType = "application/json; charset=utf-8"
)
Makes a HTTP PUT request with the provided arguments.
Url
is a string with the URL to request.Content
is a string with the PUT body content.MediaType
is a string with the media type. It defaults to application/json and charset utf-8.A
HTTP response object.patch (string Url, string Content, string MediaType = "application/json; charset=utf-8"
)
Makes a HTTP PATCH request with the provided arguments.
Url
is a string with the URL to request.Content
is a string with the PATCH body content.MediaType
is a string with the media type. It defaults to application/json and charset utf-8.A
HTTP response object.delete (string Url
)
Makes a HTTP DELETE request to the provided Url and returns a response object.
Url
is a string with the URL to request.A
HTTP response object.