Mislav Marohnić
f739002d0b
more love for response headers; handle ones with multiple values
...
Also:
- ensure that env[:response_headers] is not available during request phase
- fix headers from "Test" adapter
Closes #43
2011-03-27 21:57:14 +02:00
Mislav Marohnić
8dccfc6117
like :request_headers, env[:response_headers] is now case-insensitive
2011-03-27 00:23:20 +01:00
Mislav Marohnić
419ba4eaa4
optimize request/response cycle for parallel (asynchronous) mode
...
Changes:
- there is no `env[:response]` during the request phase
- middleware should attach `on_complete` handlers to the response object
returned from `@app.call(env)` call
- `on_complete` handlers execute immediately if the request is finished
- Builder doesn't have the `run` method anymore
- the default stack is now setup as soon as the Builder object has been initialized
- the inner app for the stack is set when creating the request
2011-03-26 21:23:18 +01:00
Mislav Marohnić
53fa18eee6
filter adapters used in tests with "ADAPTER" env variable
...
LIVE=1 ADAPTER=typhoeus bundle exec ruby test/adapters/live_test.rb
2011-03-26 21:21:21 +01:00
Mislav Marohnić
d5b6b9ce5b
make POST/PUT requests with no body set "Content-Length: 0"
2011-03-26 21:21:21 +01:00
Mislav Marohnić
d6d86dd043
extract multipart stuff from Adapter to Request::Multipart middleware
2011-03-26 21:20:21 +01:00
Mislav Marohnić
20eee87486
warn if some modules haven't loaded in tests
2011-03-26 21:16:42 +01:00
rick
db7b0940d8
you're killin me, smalls
2011-02-13 14:27:56 -08:00
Steven Parkes
f96338ea2a
add em_synchrony support
2010-11-08 02:29:09 +08:00
Erik Michaels-Ober
8eaa62b30b
Use regex matcher, since some response headers return "text/html; charset=ISO-8859-1"
2010-10-15 16:37:54 -07:00
rick
176c647bdf
some whitespace stuff
2010-10-05 11:39:13 -07:00
rick
a290789179
not sure what happened, but typhoeus supports head requests now
2010-09-28 00:37:08 -07:00
rick
c4fbe32533
live multipart tests
2010-09-07 15:35:02 -07:00
rick
bc2cd52f70
fix live tests
2010-09-07 15:20:24 -07:00
rick
3cbff597d3
Add shortcut methods on Faraday for using a default Faraday::Connection instance
2010-04-27 10:21:57 -04:00
rick
f3c927c451
finished conversion, tests pass on 1.8.x and 1.9.1
2010-02-18 14:04:14 -08:00
rick
57dfcfcb11
convert dynamic adapter tests to test/unit
2010-02-18 13:49:00 -08:00
rick
06c4f3921c
fix live tests
2010-02-07 10:24:13 -08:00
rick
67d619d780
rename Alice => Faraday.
2010-01-12 17:03:34 -08:00