# File lib/deltacloud/helpers/blob_stream.rb, line 133 def end_request begin res = HTTPResponse.read_new(@socket) end while res.kind_of?(HTTPContinue) res.reading_body(@socket, @blob_req.response_body_permitted?) { yield res if block_given? } end_transport @blob_req, res do_finish res end
# File lib/deltacloud/helpers/blob_stream.rb, line 114 def request(req, body = nil, blob_stream = nil, &block) unless blob_stream return request_orig(req, body, &block) end @blob_req = req do_start #start the connection req.set_body_internal body begin_transport req req.write_header_m @socket,@curr_http_version, edit_path(req.path) @socket end
Generated with the Darkfish Rdoc Generator 2.