- 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
runclasses. - 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::Responseheaders and body are not accessors anymore. This is because when you set the body directly, theContent-Lengthis not calculated (it's calculated on#write).
- Refactor
Hobbit::Response.
- Calculate the
Content-Lengthof aHobbit::Responseusing#bytesizeinstead of#size.
- Add
Hobbit::Response#redirect, that was missing sinceHobbit::Responseisn't aRack::Responsesubclass.
Hobbit::Responsenow returns theContent-Lengthheader as a string.
- Add halt method.
- Remove unused
attr_accessor(:length) fromHobbit::Response.
Hobbit::Responseis no longer a subclass ofRack::Response.- Forward
#mapand#usemethods toRack::Builderinstead of define these methods.