class BitGirder::Http::HttpRequest
Attributes
body[R]
headers[R]
path[R]
Public Class Methods
from_mingle_struct( ms )
click to toggle source
# File lib/bitgirder/http.rb, line 147 def self.from_mingle_struct( ms ) mg_hdrs, mg_body = ms[ :headers ], ms[ :body ] self.new( :headers => mg_hdrs ? HttpHeaders.from_mingle_struct( mg_hdrs ) : nil, :path => ms.fields.get_string( :path ), :body => mg_body ? mg_body.buf : nil ) end
new( opts = {} )
click to toggle source
Default constructor which takes a hash containing the following attributes:
- :
body
- :
headers
- :
path
- :
# File lib/doc-gen20.rb, line 101 def initialize( opts = {} ) # Autogenerated stub for docs end
Public Instance Methods
to_mingle_struct()
click to toggle source
# File lib/bitgirder/http.rb, line 135 def to_mingle_struct MingleStruct.new( :type => :"bitgirder:http@v1/HttpRequest", :fields => { :headers => @headers ? @headers.to_mingle_struct : nil, :path => @path, :body => @body ? MingleBuffer.new( @body ) : nil } ) end