class MIME::Content::Application::HttpReq
Http
Request
Attributes
content_id[RW]
for changeset content-id refs
content_id_references[RW]
http_method[RW]
uri[RW]
Public Class Methods
new()
click to toggle source
# File lib/safrano/multipart.rb, line 437 def initialize @hd = {} @content = +String.new end
Public Instance Methods
unparse()
click to toggle source
# File lib/safrano/multipart.rb, line 442 def unparse b = +"#{@http_method} #{@uri} HTTP/1.1#{CRLF}" @hd.each { |k, v| b << "#{k}: #{v}#{CRLF}" } b << CRLF b << @content unless content.empty? b end