#finish ⇒ Object

#header ⇒ ObjectAlso known as:
headers

#length ⇒ Object

45
46
47

# File 'lib/weary/response.rb', line 45deflength@response.lengthend

#parse ⇒ Object

53
54
55
56
57
58
59
60
61

# File 'lib/weary/response.rb', line 53defparseraise"The response does not contain a body"ifbody.nil?||body.empty?ifblock_given?yieldbody,content_typeelseraise"Unable to parse Content-Type: #{content_type}"unlesscontent_type=~/json($|;.*)/MultiJson.decodebodyendend