class FusionAuth::FormDataBodyHandler

Attributes

body[RW]
length[RW]

Public Class Methods

new(body_object) click to toggle source
# File lib/fusionauth/rest_client.rb, line 319
def initialize(body_object)
  @body = body_object
end

Public Instance Methods

body_object() click to toggle source
# File lib/fusionauth/rest_client.rb, line 323
def body_object
  @body
end
set_headers(headers) click to toggle source

Sets any headers necessary for the body to be processed.

@param headers [Hash] The headers hash to add any headers needed by this BodyHandler @return [Object] The object

# File lib/fusionauth/rest_client.rb, line 336
def set_headers(headers)
  headers['Content-Type'] = 'application/x-www-form-urlencoded'
  nil
end
type() click to toggle source
# File lib/fusionauth/rest_client.rb, line 327
def type
  "FormData"
end