46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# File 'lib/azure/table/batch_response.rb', line 46
def self.response_body(context)
end_of_body = nil
end_of_body = changeset_boundary_or_end(context.dup.merge!({:index=>context[:index] + 1})) if context[:index] < (context[:lines].length - 1)
if end_of_body
context[:responses].last[:body] ||= ""
context[:responses].last[:body] << current_line(context)
return context[:responses].last[:body]
else
context[:responses].last[:body] ||= ""
context[:responses].last[:body] << current_line(context)
return nil
end
end
|