PJ Dietz
|
1d71f06e71
|
Router accepts custom RouteFactory through constructor; removes protected methods
|
2020-08-15 07:18:54 -04:00 |
PJ Dietz
|
997582f8d7
|
Router implements MiddlewareInterface; cleanup Router test
|
2020-08-14 07:49:33 -04:00 |
PJ Dietz
|
56503da35e
|
Remove RouteFactoryInterface
|
2020-08-14 07:44:00 -04:00 |
PJ Dietz
|
79c4799a7b
|
Clean up tests for routes
|
2020-08-14 07:38:38 -04:00 |
PJ Dietz
|
fec5a4d405
|
Remove RouteInterface
|
2020-08-14 07:24:00 -04:00 |
PJ Dietz
|
4eec56b582
|
Mark Routing\Route classes as @internal
|
2020-08-14 07:00:50 -04:00 |
PJ Dietz
|
f542aaf3a9
|
Normalize length of dividers
|
2020-08-13 07:38:00 -04:00 |
PJ Dietz
|
cd2e4448e2
|
Update CS rules
|
2020-08-11 06:41:48 -04:00 |
PJ Dietz
|
e6d1398bb1
|
Normalize imports for global namespace
|
2020-08-10 07:31:06 -04:00 |
PJ Dietz
|
002bdb7541
|
Convert simple string literals to single quotes
|
2020-08-10 07:13:50 -04:00 |
PJ Dietz
|
fb18d2ee1e
|
Code style fixes
|
2020-08-10 07:09:48 -04:00 |
PJ Dietz
|
ca204a07e7
|
Add type hints to Router
|
2020-08-09 14:27:29 -04:00 |
PJ Dietz
|
967b6ac2a4
|
Add type hints for Routes
|
2020-08-09 13:58:24 -04:00 |
PJ Dietz
|
e9fb474eb7
|
Fix minor issues found by Psalm
|
2020-08-09 11:08:33 -04:00 |
PJ Dietz
|
08ddb0aa2f
|
Fix issues detected by Psalm
|
2020-08-08 12:05:33 -04:00 |
PJ Dietz
|
e676a17cac
|
Rename Router->addMiddleware to Router->add
|
2018-06-29 16:29:46 -04:00 |
PJ Dietz
|
677cdb4d7d
|
Change Router::continue to Router::continueOnNotFound; update docs
|
2018-06-28 16:52:36 -04:00 |
PJ Dietz
|
0a0d3c3bc9
|
Router responds 404 by default for non-matched routes
|
2018-06-28 09:46:59 -04:00 |
PJ Dietz
|
de46c8e089
|
Rework Server to be configured with setters
|
2018-06-25 15:46:37 -04:00 |
PJ Dietz
|
64628c4065
|
Move MethodMap to Route namespace
|
2018-06-22 15:54:01 -04:00 |
PJ Dietz
|
ac8bdce037
|
Remove MethodMapInterface
|
2018-06-22 15:10:50 -04:00 |
PJ Dietz
|
73b6e4ab83
|
Router registers handlers directly with routes
|
2018-06-22 14:53:03 -04:00 |
PJ Dietz
|
9b29f2a09e
|
Add Route::register method to delegate to MethodMap
|
2018-06-22 14:44:43 -04:00 |
PJ Dietz
|
9aab0d780e
|
Router can provide middleware called only for matched routes.
|
2018-06-21 16:00:11 -04:00 |
PJ Dietz
|
29cad3687e
|
Router delegates on failure and does not return 404
|
2018-06-21 12:48:11 -04:00 |
PJ Dietz
|
cd9cc09afe
|
Remove unused ivar from Transmitter
|
2018-03-13 15:08:35 -04:00 |
PJ Dietz
|
3a77d99e00
|
Minor refactor of Router; various cleanup
|
2017-08-03 14:15:08 -04:00 |
PJ Dietz
|
6a1f0c2915
|
Spellcheck
|
2015-06-04 19:18:11 -04:00 |
PJ Dietz
|
139e3c43da
|
Template Routes do not match slash prefix variables that contain slashes as the non-first character
|
2015-05-25 10:17:42 -04:00 |
PJ Dietz
|
4ba6763126
|
URI Templates with slash prefix explosions do not match reserved characters
|
2015-05-24 13:53:56 -04:00 |
PJ Dietz
|
4ec0694351
|
Revise docblocks for interfaces.
|
2015-05-20 14:42:57 -04:00 |
PJ Dietz
|
ab05ca0b40
|
Propagate pathVariablesAttributeName from Server to Router
|
2015-05-19 21:21:58 -04:00 |
PJ Dietz
|
dedec4ec4e
|
Router stores path variables directly as attributes by default.
|
2015-05-19 21:06:50 -04:00 |
PJ Dietz
|
ac2ed4a24a
|
Router stops propagating on 404, 405, and OPTIONS
|
2015-05-19 19:12:12 -04:00 |
PJ Dietz
|
a825654336
|
Refactor MiddlewareInterface::dispatch to MiddlewareInterface::__invoke
|
2015-05-19 18:35:29 -04:00 |
PJ Dietz
|
15602d8e97
|
Remove suppression operator from RegexRoute
|
2015-05-15 19:11:43 -04:00 |
PJ Dietz
|
1be4ff7691
|
Router uses only the request's path for routing
|
2015-05-13 21:53:33 -04:00 |
PJ Dietz
|
3b18d1dcdb
|
Router reads path variables from route and adds them to request before dispatching route
|
2015-05-13 21:53:33 -04:00 |
PJ Dietz
|
6232f67b9c
|
Update RouteInterface and routes
|
2015-05-13 21:53:33 -04:00 |
PJ Dietz
|
61fd0f3354
|
TemplateRoute more throughly implements URI Templates as defined in RFC 6570
Template support:
- Simple strings /{var}
- Reserved string /{+var}
- Multiple variables per expression /{hello,larry}
- Dot-prefixes /{.filename,extension}
- Slash-prefiex {/path,to,here}
- Explosion {/paths*}, /cats/{ids*} explode to list arrays
|
2015-05-13 21:53:27 -04:00 |
PJ Dietz
|
1bb93434b2
|
Store variables from URI as uriVariables attributes
|
2015-05-12 17:58:35 -04:00 |
PJ Dietz
|
22a17e42bb
|
Update Route docblocks
|
2015-05-12 17:44:28 -04:00 |
PJ Dietz
|
b198e83d55
|
Add Responder namespace
Move ContentLength and Head middleware to Resonder\Middleware
|
2015-05-10 16:59:50 -04:00 |
PJ Dietz
|
f849a6ff89
|
Router optionally takes a DispatcherInterface on construction
|
2015-05-10 14:32:43 -04:00 |
PJ Dietz
|
3786cfaade
|
Passing array to Router::register as middleware creates a DispatchStack
|
2015-05-10 12:15:39 -04:00 |
PJ Dietz
|
6507028dd3
|
Pass DispatchProvider to Router on construction
|
2015-05-10 12:04:36 -04:00 |
PJ Dietz
|
37af085ec5
|
Pass DispatcherInterface to RouteFactory on construction
|
2015-05-10 11:46:51 -04:00 |
PJ Dietz
|
87caa09b61
|
Pass DispatcherInterface into MethodMap on construction
|
2015-05-10 11:41:02 -04:00 |
PJ Dietz
|
8071b0b5db
|
Move MiddlewareInterface to the root namespace.
|
2015-05-10 11:21:55 -04:00 |
PJ Dietz
|
bbb138996a
|
Add Dispatching namesapce
|
2015-05-10 11:02:59 -04:00 |