Dromeo.VERSION = 1.2.0
Route Handler Called
Route: http://abc.org/users/abcd12/23/soo?preview=prev+iew&foo=bar
Params:
{
foo: 'soo',
once: 'once',
default_part: 1,
group: 'users',
user: 'abcd12',
id: 23,
rest: '?preview=prev+iew&foo=bar'
}
Route Handler Called
Route: http://abc.org/users/abcd12/23/soo?preview=prev+iew&foo=bar
Params:
{
foo: 'soo',
const_pattern: 'const_pattern',
group: 'users',
user: 'abcd12',
id: 23,
rest: '?preview=prev+iew&foo=bar'
}
Literal Post Handler Called
Route: http://literal.abc.org/
Params:
{ foo: 'moo', extra: 'extra', literal_route: 1 }
Literal Route Handler Called
Route: http://literal.abc.org/
Params:
{ foo: 'moo', extra: 'extra', literal_route: 1 }
Parse URI: http://abc.org/path/to/page/?abcd%5B0%5D=1&abcd%5B1%5D=2&foo=a%20string%20with%20spaces%20and%20%2B&moo%5Bsoo%5D=1&moo%5Btoo%5D=2#def%5B0%5D=1&def%5B1%5D=2&foo%5Bsoo%5D=1
{
fragment: 'def%5B0%5D=1&def%5B1%5D=2&foo%5Bsoo%5D=1',
query: 'abcd%5B0%5D=1&abcd%5B1%5D=2&foo=a%20string%20with%20spaces%20and%20%2B&moo%5Bsoo%5D=1&moo%5Btoo%5D=2',
path: '/path/to/page/',
host: 'abc.org',
scheme: 'http',
query_params: {
abcd: [ '1', '2' ],
foo: 'a string with spaces and +',
moo: { soo: '1', too: '2' }
},
fragment_params: { def: [ '1', '2' ], foo: { soo: '1' } }
}
Build URI
http://abc.org/path/to/page/?abcd%5B0%5D=1&abcd%5B1%5D=2&foo=a%20string%20with%20spaces%20and%20%2B&moo%5Bsoo%5D=1&moo%5Btoo%5D=2#def%5B0%5D=1&def%5B1%5D=2&foo%5Bsoo%5D=1
Parse QUERY: key1=val1&key2[key3]=val2&key2[key4]=val3&key5[key6][]=val4&key5[key6][]=val5&key7[0]=val6&key7[1]=val7
{
key1: 'val1',
key2: { key3: 'val2', key4: 'val3' },
key5: { key6: [ 'val4', 'val5' ] },
key7: [ 'val6', 'val7' ]
}
|