- Change the implementation of
Hobbit::Base#halt
. This new implementation is more rack compliant. - Test hobbit with oktobertest instead of minitest (Because reasons!).
- A class is an object too, so allow to
run
classes. - Add
Hobbit::Request
, which sets the path info to/
if its empty (instead of doing that on the call method).
- Refactor
Hobbit::Base#halt
. It now sets the status, merges the headers and writes the body (usingHobbit::Response#write
) when given a fixnum, a hash or a string. Hobbit::Response
headers and body are not accessors anymore. This is because when you set the body directly, theContent-Length
is not calculated (it's calculated on#write
).
- Refactor
Hobbit::Response
.
- Calculate the
Content-Length
of aHobbit::Response
using#bytesize
instead of#size
.
- Add
Hobbit::Response#redirect
, that was missing sinceHobbit::Response
isn't aRack::Response
subclass.
Hobbit::Response
now returns theContent-Length
header as a string.
- Add halt method.
- Remove unused
attr_accessor
(:length
) fromHobbit::Response
.
Hobbit::Response
is no longer a subclass ofRack::Response
.- Forward
#map
and#use
methods toRack::Builder
instead of define these methods.