Method: Warc::HTTP.archive
- Defined in:
- lib/warc/http.rb
.archive(uri, stream) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/warc/http.rb', line 21 def self.archive(uri,stream) stream = case stream when ::Warc::Stream stream when String ::Warc::Stream::Gzip.new(stream) end record,response = self.get(uri) stream.write_record(record) return response end |