Gibheer
4aab135bc6
add x-forwarded-for header to the client
...
This adds the way to find out the actual ip of the client machine, even
if it is hidden behind a local reverse proxy.
2014-03-05 09:44:06 +01:00
Gibheer
6ad7650c05
add cookie support in requests
2013-10-22 17:07:16 +02:00
Gibheer
36a9b22a09
remove debug output
2013-10-21 15:58:29 +02:00
Gibheer
00e0c01703
fix paramter extraction with charset
...
This fixes a bug where a charset in the content type blocked the
extraction of the payload.
A browser may send a string like
multipart/form-data; charset=UTF-8
which include? could not find the defined types. Now it gets split and
then checked against the defined types.
2013-08-13 13:20:36 +02:00
Gibheer
30215c37d1
make it possible to push lists as paramters
...
This makes it possible to push lists as paramters by naming the
variables with `[]` at the end, for example `foo[]`.
2013-08-06 14:15:54 +02:00
Gibheer
e2f3e29a34
extend server with protocol information
...
This extends the server class with the information, if it is serving
http or https. This can then be used to generate a root uri to the web
application.
2013-07-26 14:46:33 +02:00
Gibheer
89e2efeffa
Revert "generate a name from the server details"
...
This reverts commit 94a2d399eb
.
2013-07-22 15:35:34 +02:00
Gibheer
94a2d399eb
generate a name from the server details
2013-07-22 15:17:28 +02:00
cd97198e22
Kill all mutants in Zero::Request::Parameter
...
I've also changed "extract_query_params" because it does not matter, if the
query string it empty or not for the "parse_string" method.
2013-01-06 10:28:13 +01:00
3bb53d7343
Kill almost all mutants in Zero::Request:AcceptType
...
Killed 13 of 14 mutants. I will see later, how it's possible to kill the last
one.
I also fixed the return value of "preferred", if the in initialize given string
is empty. Fixed the default value here.
2013-01-05 18:30:36 +01:00
Gibheer
39acc44742
remove require_relative to make it 1.8 compatible
2012-12-17 19:36:41 +01:00
Gibheer
38bde320ac
typo in the documentation
2012-12-12 18:39:40 +01:00
Gibheer
55052f83ef
avoid changing existing environment keys
2012-12-01 07:23:37 +01:00
Gibheer
f79c5c8394
mapping is not needed at this point
2012-11-30 16:22:36 +01:00
Gibheer
ec446a53b1
use URI to get parameters
2012-11-30 14:46:52 +01:00
Gibheer
8c7eed073c
added custom parameter
2012-11-29 19:44:12 +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
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
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
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