Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 29, 2010
  1. @miyagawa

    Updated documents

    miyagawa authored
  2. @miyagawa

    Added a test for $req->base

    miyagawa authored
  3. @miyagawa

    Consolidated ->base and ->uri and cache those results in the env, but

    miyagawa authored
    uses ->clone to create a new URI object.
Commits on Jan 28, 2010
  1. @miyagawa

    INCOMPATIBLE: deleted slurp, link_to, copy from Plack::Request::Upload.

    miyagawa authored
    Added ->content_type and ->path shortcut to get Content-Type and
    temporary file path.
  2. @miyagawa

    INCOMPATIBLE: Do not use CGI::Simple::Cookie to generate cookies.

    miyagawa authored
    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. @miyagawa
  4. @miyagawa

    Implemented Plack::TempBuffer to automatically switch PerlIO and Temp

    miyagawa authored
    file based buffering for request uploads. Added a test to verify large
    file uploads via Mock and Server.
Commits on Jan 27, 2010
  1. @miyagawa
  2. @miyagawa
  3. @miyagawa
  4. @miyagawa
  5. @miyagawa

    back out the ->path change

    miyagawa authored
  6. @miyagawa

    fix test plan

    miyagawa authored
  7. @miyagawa

    Deprecated $req->cookie since you can just use ->cookies to get a

    miyagawa authored
    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.
  8. @miyagawa

    INCOMPATIBLE: no longer use CGI::Simple::Cookie to parse cookies.

    miyagawa authored
    $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)
  9. @miyagawa

    Some code and doc cleanups.

    miyagawa authored
    Made cookies() method read only and only parse once and save the
    result in $env.
Commits on Jan 21, 2010
  1. @miyagawa

    URI::QueryParam is unused

    miyagawa authored
  2. @miyagawa

    rm unused chunk of tests

    miyagawa authored
  3. @miyagawa

    added session.options

    miyagawa authored
  4. @miyagawa

    CHANGE: all param() and params() are now read-only.

    miyagawa authored
    parameters() (and body/query_parameters() and aliases) now returns
    Hash::MultiValue object instead of scalar-or-array-ref. YAY!
  5. @miyagawa

    Make psgi.input rewindable by saving the read body into a temp file

    miyagawa authored
    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.
  6. @miyagawa
  7. @miyagawa

    Added psgix.logger

    miyagawa authored
  8. @miyagawa

    DEPRECATE $req->raw_body.

    miyagawa authored
    Make $req->body and $req->content just the alias for what was called
    raw_body (returning the raw input body)
  9. @miyagawa

    Do not use confess.

    miyagawa authored
  10. @miyagawa

    DEPRECATED: $req->hostname is deprecated, and doesn't do

    miyagawa authored
    IP-to-hostname lookups anymore.
    
    Added $req->remote_host which just returns REMOTE_HOST.
Commits on Jan 20, 2010
  1. @miyagawa

    Copied Plack::Request, Response and its tests from Plack-Request dist.

    miyagawa authored
    Tests are adjusted to work with Plack::Test or standalone. All tests
    are unmodified YET, to make all the backward incompatilbe changes can
    be visible from now on, on this 'plack-request' branch.
Commits on Jan 19, 2010
  1. @miyagawa
Commits on Jan 18, 2010
  1. @miyagawa
  2. @miyagawa
  3. @miyagawa

    psgi.logger -> psgix.logger

    miyagawa authored
  4. @miyagawa

    psgi.logger now takes a hash ref rather than positional arguments,

    miyagawa authored
    since that's more PSGI interface friendly, and easy to extend.
    
      $env->{'psgi.logger'}->({ level => "debug", message => "Foo" });
  5. @miyagawa
  6. @miyagawa
  7. @miyagawa
Something went wrong with that request. Please try again.