class FusionAuth::RESTClient
- FusionAuth::RESTClient
- Reference
- Object
Defined in:
fusionauth/rest_client.crConstructors
Instance Method Summary
- #authorization(authorization : String)
- #basic_authorization(username : String, password : String)
- #body_handler(body_handler : BodyHandler)
- #certificate(&)
- #connect_timeout(connect_timeout : Number)
- #delete
- #get
- #go
- #header(name : String, value : String)
- #headers(headers : Hash)
- #patch
- #post
- #put
- #read_timeout(read_timeout : Number)
- #uri(uri : String)
-
#url_parameter(name : String | Nil, value)
Add a URL parameter as a key value pair.
-
#url_segment(value : String | Nil)
Append a url path segment.
Constructor Detail
Instance Method Detail
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.
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.