class FusionAuth::RESTClient

Defined in:

fusionauth/rest_client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(uri : URI) #

[View source]

Instance Method Detail

def authorization(authorization : String) #

[View source]
def basic_authorization(username : String, password : String) #

[View source]
def body_handler(body_handler : BodyHandler) #

[View source]
def certificate(&) #

[View source]
def connect_timeout(connect_timeout : Number) #

[View source]
def delete #

[View source]
def get #

[View source]
def go #

[View source]
def header(name : String, value : String) #

[View source]
def headers(headers : Hash) #

[View source]
def patch #

[View source]
def post #

[View source]
def put #

[View source]
def read_timeout(read_timeout : Number) #

[View source]
def uri(uri : String) #

[View source]
def url_parameter(name : String | Nil, value) #

Add a URL parameter as a key value pair.

@param name [String] The URL parameter name. @param value [String} ]The url parameter value. The .toString()</ code> method will be used to get the String used in the URL parameter. If the object type is a @link Collection} a key value pair will be added for each value in the collection. @link ZonedDateTime} will also be handled uniquely in that the long</ code> will be used to set in the request using ZonedDateTime.toInstant().toEpochMilli() @return This.


[View source]
def url_segment(value : String | Nil) #

Append a url path segment.

For Example:

.url("http://www.foo.com ")
.urlSegment(" bar ")
This will result in a url of http://www.foo.com/bar

@param value The url path segment. A nil value will be ignored. @return This.


[View source]