Lines Matching refs:request
70 * @param ServerRequestInterface $request
75 …public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): Respon… argument
78 $url_route = Validator::queryParams($request)->string('route', '');
80 if (Validator::attributes($request)->boolean('rewrite_urls', false)) {
83 $uri = $request->getUri()
85 ->withQuery(explode('&', $request->getUri()->getQuery(), 2)[1] ?? '');
92 $pretty = $request;
95 $uri = $request->getUri()->withPath($url_route);
96 $pretty = $request->withUri($uri);
120 return $handler->handle($request);
124 $request = $request->withAttribute('route', $route);
156 return $handler->handle($request);
160 $request = $request->withAttribute((string) $key, $value);
164 Registry::container()->set(ServerRequestInterface::class, $request);
168 return $dispatcher->dispatch($request);