PHP Classes

File: test/python/out1.txt

Recommend this page to a friend!
  Classes of Nikos M.  >  Dromeo PHP Router Library  >  test/python/out1.txt  >  Download  
File: test/python/out1.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Dromeo PHP Router Library
Route HTTP requests to functions with URL patterns
Author: By
Last change: v.1.2.0 in progress

* onGroup method to group routes under common (literal) prefix (in progress)
* handle edge case in makePattern
* original matched extracts contain same defaults (if given)
* fix typo in PHP,JS in clearRoute
* update tests
Date: 3 months ago
Size: 1,956 bytes


Class file image Download
Dromeo Module loaded succesfully Dromeo.VERSION = 1.2.0 Route Handler Called Route: Params: { 'default_part': '1', 'foo': 'soo', 'group': 'users', 'id': 23, 'once': 'once', 'rest': '?preview=prev+iew&foo=bar', 'user': 'abcd12'} Route Handler Called Route: Params: { 'const_pattern': 'const_pattern', 'foo': 'soo', 'group': 'users', 'id': 23, 'rest': '?preview=prev+iew&foo=bar', 'user': 'abcd12'} Literal Post Handler Called Route: Params: {'extra': 'extra', 'foo': 'moo', 'literal_route': '1'} Literal Route Handler Called Route: Params: {'extra': 'extra', 'foo': 'moo', 'literal_route': '1'} Parse URI: { 'fragment': 'foo%5Bsoo%5D=1&def%5B0%5D=1&def%5B1%5D=2', 'fragment_params': {'def': ['1', '2'], 'foo': {'soo': '1'}}, 'host': '', 'path': '/path/to/page/', 'query': 'abcd%5B0%5D=1&abcd%5B1%5D=2&foo=a%20string%20with%20spaces%20and%20%2B&moo%5Btoo%5D=2&moo%5Bsoo%5D=1', 'query_params': { 'abcd': ['1', '2'], 'foo': 'a string with spaces and +', 'moo': {'soo': '1', 'too': '2'}}, 'scheme': 'http'} Build URI 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']}