Class HTTP::FormData::Part
In: lib/http/form_data/part.rb
Parent: Object

Represents a body part of multipart/form-data request.

@example Usage with String

 body = "Message"
 FormData::Part.new body, :content_type => 'foobar.txt; charset="UTF-8"'

Methods

new  

Included Modules

Readable

Attributes

content_type  [R] 
filename  [R] 

Public Class methods

@param [to_s] body @param [String] content_type Value of Content-Type header @param [String] filename Value of filename parameter

[Validate]