Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (49 sloc) 1.908 kB
HTTP::Message
-------------
- option to keep file content in file (save method?)
- save message to file (separate file for headers and content?)
- option to move file content to temp file if it grows big enough
- bind( $filename ) # discard current content (read file/write lazily)
- save( $filename ) # write current content to file and bind()
- rename( $filename ) # croak if not bound
- close() # in case file handle is open, flush saved content
- unbind(keep_content/reset_content/unlink)
- bound() # returns the bound filename (or false)
- tempfile(template, DIR, SUFFIX, TMPDIR, CLEANUP, LIMIT)
- read($offset, $length)
- alternative is to expose the IO::Handle interface (IO::String for compat)
- length # return -s
- content_length # already a method giving access to the Header field
- methods to sync header fields and file meta data
- Last-Modified
- Content-Length
- Content-Type
- Content-Encoding
- Content-MD5
- state kept to track file binding
- filename
- fh
- open_readonly
- temp_limit
- temp_options
- interaction with current interface
- content_ref modifications problematic
- do we implement content_ref at all?
- file suffix should stay in sync as the file is encoded/decoded
- parts (when does modification happen)
- clear; implies unbind(reset_content)
- clone; implies unbind(keep_content)?, no shared $fh at least
- optionally loaded as HTTP::Message::File (?)
- a way to store headers, status line, etc in a file as well?
- decode stream (reusable in LWP::Protocol)
- registry of encoders for encode/decode
LWP::UserAgent
--------------
- raise HTTP::Response objects as exceptions
Data::Sink/Source
-----------------
- alternative consumer/producer
- get/read, close
- put/write/feed, flush, close
- reset
- http://effbot.org/zone/consumer.htm
Jump to Line
Something went wrong with that request. Please try again.