Class: Net::HTTPResponse
- Inherits:
-
Object
- Object
- Net::HTTPResponse
- Defined in:
- lib/appengine-apis/urlfetch.rb
Overview
:nodoc:
Instance Method Summary collapse
- #read_body_0(dest) ⇒ Object
- #read_body_0_without_urlfetch ⇒ Object
- #stream_check ⇒ Object
- #stream_check_without_urlfetch ⇒ Object
- #urlfetch_body=(body) ⇒ Object
Instance Method Details
#read_body_0(dest) ⇒ Object
232 233 234 235 236 237 238 239 |
# File 'lib/appengine-apis/urlfetch.rb', line 232 def read_body_0(dest) if @urlfetch_body dest << @urlfetch_body return else read_body_0_without_urlfetch(dest) end end |
#read_body_0_without_urlfetch ⇒ Object
230 |
# File 'lib/appengine-apis/urlfetch.rb', line 230 alias read_body_0_without_urlfetch read_body_0 |
#stream_check ⇒ Object
225 226 227 228 |
# File 'lib/appengine-apis/urlfetch.rb', line 225 def stream_check return if @urlfetch_body stream_check_without_urlfetch end |
#stream_check_without_urlfetch ⇒ Object
223 |
# File 'lib/appengine-apis/urlfetch.rb', line 223 alias stream_check_without_urlfetch stream_check |
#urlfetch_body=(body) ⇒ Object
241 242 243 244 |
# File 'lib/appengine-apis/urlfetch.rb', line 241 def urlfetch_body=(body) @body_exist = body && self.class.body_permitted? @urlfetch_body = body || '' end |