Commits on Apr 25, 2011
  1. goliath/rack/params catches parse errors and re-throws as BadRequestE…

    …rror -- it should be a 4xx not a 5xx error. Added spec. Requiring the standard_http_errors by default now -- is that controversial?
    Philip (flip) Kromer committed Apr 24, 2011
Commits on Apr 24, 2011
  1. Don't send empty chunks from chunked_stream_send -- it signals the en…

    …d of stream to the client.
    Philip (flip) Kromer committed Apr 24, 2011
  2. @igrigorik

    give the user rope to hang themselves: returning nil from response

    method gives you a raw TCP connection back to the client. Meaning, it's
    up to the user to generate the headers, the body, and all the rest.
    This allows you to respond in non-HTTP if your heart so desires, or a
    slightly more useful scenario: defer any response processing to some
    downstream handler which will craft the headers for us.
    igrigorik committed Apr 23, 2011
  3. @igrigorik
  4. @igrigorik

    pedantic cleanup

    igrigorik committed Apr 23, 2011
  5. @igrigorik

    cleanup: drop freeze

    igrigorik committed Apr 23, 2011
Commits on Apr 23, 2011
  1. Got rid of ChunkedStreamingAPI -- moved the methods into Env#chunked_…

    …stream_send and Env#chunked_stream_close. Added helpers 'streaming_response' and 'chunked_streaming_response' to API, so that instead of [200, {gook}, Goliath::Response::Streaming] you may return streaming_response(200) or streaming_response(200, 'X-My-Happy-Header' => 'HELLO'). Note that the default status_code for both streaming_response and chunked_streaming_response is 200, not 202... I'm not l337 enough to know the proper subtleties there, though I believe for chunked streaming 200 is appropriate.
    Philip (flip) Kromer committed Apr 23, 2011
  2. made the stream example pass a newline on each fire -- this means tha…

    …t curl will show the streaming-ness
    Philip (flip) Kromer committed Apr 23, 2011
  3. Example layout and views for the simple templater

    Philip (flip) Kromer committed Apr 23, 2011
  4. include Goliath::Rack::Templates lets you render any number of templa…

    …tes, using code pilfered from Sinatra. Here's the base code; the example's views will follow.
    Philip (flip) Kromer committed Apr 23, 2011
  5. Added Goliath::Application.root_path to let you reference files relat…

    …ive to the container of app_file
    Philip (flip) Kromer committed Apr 23, 2011
  6. Made Standard HTTP errors take the one-argument initializer (BadReque…

    …stError.new("Oops") or raise BadRequestError, "oops") -- you shouldn't be able to change their status_code. Also, made InternalServerError be InternalServerError not InternalServerErrorError
    Philip (flip) Kromer committed Apr 23, 2011
  7. Added an accessor to inspect the recentest recent latency. It's kindo…

    …f a hack -- it sets a class variable each time the timer goes off -- is there a better way?
    Philip (flip) Kromer committed Apr 23, 2011
Commits on Apr 22, 2011
  1. YAML unit tests pass (tests were incompletely migrated)

    Philip (flip) Kromer committed Apr 22, 2011
  2. Merge branch 'master' of github.com:postrank-labs/goliath

    Philip (flip) Kromer committed Apr 21, 2011
  3. YAML formatter for text/yaml

    Philip (flip) Kromer committed Apr 21, 2011
  4. @dj2

    minor cleanups

    dj2 committed Apr 21, 2011
Commits on Apr 20, 2011
  1. Merge branch 'master' of https://github.com/postrank-labs/goliath

    Philip (flip) Kromer committed Apr 19, 2011
  2. Added Chunked Transfer Encoding HTTP streaming, with example

    Philip (flip) Kromer committed Apr 19, 2011
Commits on Apr 19, 2011
  1. @igrigorik

    use latest EM beta build

    igrigorik committed Apr 19, 2011
Commits on Apr 18, 2011
  1. @nono

    Add some links in coverage

    nono committed Apr 18, 2011
  2. @dj2

    formatting

    dj2 committed Apr 18, 2011
  3. @dj2

    Merge branch 'master' of https://github.com/infochimps/goliath into i…

    …nfochimps-master
    dj2 committed Apr 18, 2011
  4. rescuing Goliath::Validation::Error separately from general Exception…

    …. Required that Goliath::Validation::Error be split off into own file and require'd into goliath/api.rb
    Philip (flip) Kromer committed Apr 18, 2011
  5. Define subclass of Goliath::Validation::Error for each standard HTTP …

    …error code (4xx and 5xx): Goliath::Validation::NotFoundError, Goliath::Validation::GatewayTimeoutError, and so forth.
    Philip (flip) Kromer committed Apr 17, 2011
  6. Goliath::Rack::Validation::NumericRange accepts :as => Float -- coerc…

    …e param to a float, not an integer
    Philip (flip) Kromer committed Apr 17, 2011
  7. Api catches *all* errors, which means you can't use Goliath::Rack::Va…

    …lidationError to catch an error raised within the Goliath::API class. I don't really like this implementation, but here's a patch to make Goliath::API pass through any Goliath::Validation::Error exceptions if Goliath::Rack::ValidationError is included
    Philip (flip) Kromer committed Apr 17, 2011
  8. @igrigorik
  9. @igrigorik
Commits on Apr 16, 2011
  1. @igrigorik
Commits on Apr 11, 2011
  1. @dj2
  2. @dj2

    bump version number

    dj2 committed Apr 11, 2011
Commits on Apr 9, 2011
  1. @igrigorik
  2. @igrigorik
  3. @igrigorik

    simplify reloader check

    igrigorik committed Apr 9, 2011