a76b08fbb3
Add default value to status code
2012-11-17 14:46:53 +01:00
633d5fb7c8
Converts any input in status to an integer
2012-11-17 14:35:15 +01:00
Gibheer
41cf83c525
added specs for Renderer.transform
2012-11-16 18:13:07 +01:00
Gibheer
63fe8abe98
documentet the renderer and added a spec
2012-11-16 18:13:07 +01:00
Gibheer
90445fb473
corrected the naming of #accept, before #media_types
2012-11-16 18:13:07 +01:00
Gibheer
f7c2a53f00
corrected documentation
2012-11-16 18:13:07 +01:00
Gibheer
4cf38dae78
changed the name of the functions
2012-11-16 18:13:07 +01:00
Gibheer
be5cd61bb9
this adds a new accept type
...
This new class handles various accept strings and makes them available
throught the same API. This way, language and media type feels the same.
2012-11-16 18:13:07 +01:00
0986ca27f5
Add simple response object
2012-11-16 17:56:34 +01:00
Gibheer
4e72614a28
replace rack router with the zero router
2012-11-16 10:57:14 +01:00
Gibheer
8a1c464c8b
added self.create to the request
...
With this it is possible to reuse an already set request and therefore
safe some memory and time.
2012-11-16 09:33:25 +01:00
Gibheer
0fd2d00fdb
check for nil argument and use an empty array
2012-11-15 19:32:14 +01:00
Gibheer
022d29d633
added the implemention for #server
2012-11-15 19:11:35 +01:00
Gibheer
2c1465f36d
added docs for #client
2012-11-15 17:01:29 +01:00
Gibheer
8f5486700b
added Client to the request
2012-11-15 06:43:40 +01:00
Gibheer
66769af57a
changed the setting of @@map
2012-11-14 21:38:57 +01:00
Gibheer
cd046bf278
added documentation for parameter constants
2012-11-14 19:03:51 +01:00
Gibheer
0b006fd388
added more documentation
2012-11-13 21:32:26 +01:00
Gibheer
291fb1810a
use #method for @method declaration
2012-11-13 21:30:59 +01:00
Gibheer
960752a55c
add reader for environment
2012-11-13 21:29:59 +01:00
Gibheer
ff46b368ed
added comments for the constants
2012-11-13 21:26:45 +01:00
Gibheer
4990f5fb22
replace head? with patch?
2012-11-13 07:47:49 +01:00
Gibheer
8a895b5a71
added more documentation
2012-11-12 19:59:32 +01:00
Gibheer
fa37cff5fa
added the two new facilities
2012-11-08 21:36:56 +01:00
Gibheer
84eaf7f763
added a small renderer
...
This is a renderer which currently just looks for fitting templates
based on the name and accept type. The accept type can be mapped in the
accept class to make it easier to work with.
2012-11-08 21:36:56 +01:00
Gibheer
24eba118e6
replacement for rack request
...
This should replace Rack::Request in the hole lib. It seperates
everything worth into its own classes, like parameters and the accept
header till now.
More will follow
2012-11-08 21:36:56 +01:00
Gibheer
396151eb70
fixed the documentation
2012-11-08 21:36:56 +01:00
Gibheer
b6f21dc1c6
file to require everything
2012-11-08 21:36:56 +01:00
Gibheer
ea20ebf46c
use zero/all to require everything
2012-11-08 21:36:56 +01:00
Gibheer
79537632ac
added new router to the tools
...
This small router is intended to work like URLMap, but with the feature
that it can extract variables from routes.
2012-10-13 11:48:11 +02:00
Gibheer
92e199d5db
Rack::Response and Rack::Request work pretty good
2012-10-06 20:18:30 +02:00
Gibheer
3ec99843eb
switched render with response
...
The intention is, that everything gets rendered first and after that
packed to a response. This way, error checking on the response can be
done after rendering.
2012-10-05 20:35:34 +02:00
Gibheer
4365b0ff13
changed the way rendering happens
2012-10-05 20:33:19 +02:00
Gibheer
46fcff33b7
a small api is needed
2012-10-05 20:18:22 +02:00
Gibheer
896157c234
the body is an array
2012-10-05 08:13:07 +02:00
Gibheer
609015b6fc
small changes to get it working
2012-10-05 08:12:34 +02:00
Gibheer
f12ceef4a8
added the request as a parameter to the controller
2012-10-05 08:11:34 +02:00
Gibheer
30399df1c7
fixed small error
2012-10-05 08:05:32 +02:00
Gibheer
bbbc743a93
forgot the include for the new classes
2012-10-05 08:04:12 +02:00
Gibheer
bc34186b23
added some basic structures
2012-10-05 07:54:17 +02:00
Gibheer
c2c053a73b
throw out the server as it was a test
2012-10-05 06:38:05 +02:00
Gibheer
c5db0891ff
initial commit
2012-10-04 20:17:07 +02:00