Class: FusionAuth::FormDataBodyHandler
- Inherits:
-
Object
- Object
- FusionAuth::FormDataBodyHandler
- Defined in:
- lib/fusionauth/rest_client.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#length ⇒ Object
Returns the value of attribute length.
Instance Method Summary collapse
- #body_object ⇒ Object
-
#initialize(body_object) ⇒ FormDataBodyHandler
constructor
A new instance of FormDataBodyHandler.
-
#set_headers(headers) ⇒ Object
Sets any headers necessary for the body to be processed.
- #type ⇒ Object
Constructor Details
#initialize(body_object) ⇒ FormDataBodyHandler
Returns a new instance of FormDataBodyHandler.
319 320 321 |
# File 'lib/fusionauth/rest_client.rb', line 319 def initialize(body_object) @body = body_object end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
317 318 319 |
# File 'lib/fusionauth/rest_client.rb', line 317 def body @body end |
#length ⇒ Object
Returns the value of attribute length.
317 318 319 |
# File 'lib/fusionauth/rest_client.rb', line 317 def length @length end |
Instance Method Details
#body_object ⇒ Object
323 324 325 |
# File 'lib/fusionauth/rest_client.rb', line 323 def body_object @body end |
#set_headers(headers) ⇒ Object
Sets any headers necessary for the body to be processed.
336 337 338 339 |
# File 'lib/fusionauth/rest_client.rb', line 336 def set_headers(headers) headers['Content-Type'] = 'application/x-www-form-urlencoded' nil end |
#type ⇒ Object
327 328 329 |
# File 'lib/fusionauth/rest_client.rb', line 327 def type "FormData" end |