Permalink
Switch branches/tags
Commits on Jan 29, 2010
  1. Undeprecated ->path, but make it an alias for path_info since that's

    miyagawa committed Jan 29, 2010
    what the original document was saying (the code was buggy. Use
    ->uri->path if you want that buggy behavior).
  2. undeprecate ->raw_body since it was documented while the new 'content'

    miyagawa committed Jan 29, 2010
    wasn't, and given many applications and middleware use it.
  3. document changes for 0.99_01

    miyagawa committed Jan 29, 2010
  4. document about cookies

    miyagawa committed Jan 29, 2010
  5. cleanup

    miyagawa committed Jan 29, 2010
  6. no POSIX.

    miyagawa committed Jan 29, 2010
  7. clkao++ POSIX--

    miyagawa committed Jan 29, 2010
  8. more docs for cookies

    miyagawa committed Jan 29, 2010
  9. Added a section to discuss more about Hash::MultiValue, and depend on

    miyagawa committed Jan 29, 2010
    0.05 so you can call the shorter ->mixed or ->multi, to work with the
    older parameter handling code.
  10. Updated documents

    miyagawa committed Jan 29, 2010
  11. Added a test for $req->base

    miyagawa committed Jan 29, 2010
  12. Consolidated ->base and ->uri and cache those results in the env, but

    miyagawa committed Jan 29, 2010
    uses ->clone to create a new URI object.
Commits on Jan 28, 2010
  1. INCOMPATIBLE: deleted slurp, link_to, copy from Plack::Request::Upload.

    miyagawa committed Jan 28, 2010
    Added ->content_type and ->path shortcut to get Content-Type and
    temporary file path.
  2. INCOMPATIBLE: Do not use CGI::Simple::Cookie to generate cookies.

    miyagawa committed Jan 28, 2010
    This means:
      * Now support httponly in the cookie attributes.
      * Does not auto-convert strings like '+1d' for expires. Use epoch timestamp for this.
      * Does not join the list with '&' if value is an array ref or an hash ref.
        Always pass strings.
  3. Implemented Plack::TempBuffer to automatically switch PerlIO and Temp

    miyagawa committed Jan 28, 2010
    file based buffering for request uploads. Added a test to verify large
    file uploads via Mock and Server.
Commits on Jan 27, 2010
  1. back out the ->path change

    miyagawa committed Jan 27, 2010
  2. fix test plan

    miyagawa committed Jan 27, 2010
  3. Deprecated $req->cookie since you can just use ->cookies to get a

    miyagawa committed Jan 27, 2010
    hashref to get the list of cookie names.
    
    _deprecated now suggests an alternative method name.
    
    $req->path now returns $req->path_info since that's usually what qmost
    frameworks want. Use $req->uri->path (which is SCRIPT_NAME +
    PATH_INFO) if that is NOT the case.
  4. INCOMPATIBLE: no longer use CGI::Simple::Cookie to parse cookies.

    miyagawa committed Jan 27, 2010
    $req->cookie($name) returns *a string* instead of an object to
    represent cookie values. You no longer have to check if cookie()
    returns an object and then call ->value method on it.
    
    No longer auto deflate hash refs and array refs by splitting them with
    '&': that's a de-facto standard way of encoding cookies, originated
    from CGI.pm and used in CGI::Simple::Cookie, cgi.rb and everywhere
    else, but it lets you write a code like:
    
      $res->cookies->{foo} = { bar => 1 };
      %v = $req->cookie('foo') ? $req->cookie('foo')->values : ();
    
    and it doesn't really allow you to serailize nested hash/arrays
    anyway, hence fragile and just ugly.
    
    (Plack::Response still does this '&' concatenation; fixes coming soon)
  5. Some code and doc cleanups.

    miyagawa committed Jan 27, 2010
    Made cookies() method read only and only parse once and save the
    result in $env.
Commits on Jan 25, 2010
Commits on Jan 21, 2010
  1. URI::QueryParam is unused

    miyagawa committed Jan 21, 2010
  2. rm unused chunk of tests

    miyagawa committed Jan 21, 2010
  3. added session.options

    miyagawa committed Jan 21, 2010
  4. CHANGE: all param() and params() are now read-only.

    miyagawa committed Jan 21, 2010
    parameters() (and body/query_parameters() and aliases) now returns
    Hash::MultiValue object instead of scalar-or-array-ref. YAY!
  5. Make psgi.input rewindable by saving the read body into a temp file

    miyagawa committed Jan 21, 2010
    when parsing. Saves POST parameters and Upload objects using
    Hash::MultiValue, so params() would always return the last parameter
    found, while ->get_all would allow you to get the all values in a
    list.
    
    Still uses HTTP::Body but removed a BodyParser object. Made a
    temporary hack to not spin loop more than 2000 times when parsing, to
    avoid DoS with wrong Content-Length values.