mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
push request params into response, for easier debugging, and possibly pagination, etc
This commit is contained in:
parent
a89a41b91b
commit
4412e84e9d
2 changed files with 2 additions and 1 deletions
|
@ -41,6 +41,7 @@ module Fog
|
||||||
@connection.write(request)
|
@connection.write(request)
|
||||||
|
|
||||||
response = Fog::Response.new
|
response = Fog::Response.new
|
||||||
|
response.request = params
|
||||||
response.status = @connection.readline[9..11].to_i
|
response.status = @connection.readline[9..11].to_i
|
||||||
while true
|
while true
|
||||||
data = @connection.readline.chomp!
|
data = @connection.readline.chomp!
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module Fog
|
module Fog
|
||||||
class Response
|
class Response
|
||||||
|
|
||||||
attr_accessor :status, :headers, :body
|
attr_accessor :body, :headers, :request, :status
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@body = ''
|
@body = ''
|
||||||
|
|
Loading…
Reference in a new issue