Home
last modified time | relevance | path

Searched refs:response (Results 1 – 25 of 201) sorted by relevance

123456789

/webtrees/tests/feature/
H A DIndividualListTest.php73 $response = $module->handle($request);
74 $html = $response->getBody()->getContents();
80 $response = $module->handle($request);
81 $html = $response->getBody()->getContents();
87 $response = $module->handle($request);
88 $html = $response->getBody()->getContents();
99 $response = $module->handle($request);
100 self::assertSame(StatusCodeInterface::STATUS_MOVED_PERMANENTLY, $response->getStatusCode());
101 self::assertStringContainsString('surname=MULLER', $response->getHeaderLine('Location'));
104 $response = $module->handle($request);
[all …]
/webtrees/app/Http/Middleware/
H A DEmitResponse.php57 $response = $handler->handle($request);
63 if (!$response->hasHeader('cache-control')) {
64 $response = $response->withHeader('cache-control', 'no-store');
68 $this->emitStatusLine($response);
69 $this->emitHeaders($response);
70 $this->emitBody($response);
73 return $response;
117 * @param ResponseInterface $response
119 private function emitStatusLine(ResponseInterface $response): void argument
121 http_response_code($response->getStatusCode());
[all …]
H A DCompressResponse.php71 $response = $handler->handle($request);
75 if ($method !== null && $this->isCompressible($response)) {
76 $content = (string) $response->getBody();
89 return $response;
94 return $response
100 return $response;
122 * @param ResponseInterface $response
126 protected function isCompressible(ResponseInterface $response): bool argument
129 if ($response->hasHeader('content-encoding')) {
133 $content_type = $response->getHeaderLine('content-type');
H A DContentLength.php40 $response = $handler->handle($request);
42 if ($response->hasHeader('content-length')) {
43 return $response;
46 $content_length = $response->getBody()->getSize();
49 return $response;
52 return $response
/webtrees/tests/app/Http/RequestHandlers/
H A DUpgradeWizardStepTest.php53 $response = $handler->handle($request);
55 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode());
69 $response = $handler->handle($request);
71 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
115 $response = $handler->handle($request);
117 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
129 $response = $handler->handle($request);
131 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
150 $response = $handler->handle($request);
152 … self::assertSame(StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR, $response->getStatusCode());
[all …]
H A DPingTest.php39 $response = $handler->handle($request);
41 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
42 self::assertSame('OK', (string) $response->getBody());
53 $response = $handler->handle($request);
55 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
56 self::assertSame('WARNING', (string) $response->getBody());
66 $response = $handler->handle($request);
68 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
69 self::assertSame('ERROR', (string) $response->getBody());
H A DManageMediaDataTest.php55 $response = $handler->handle($request);
57 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
77 $response = $handler->handle($request);
79 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
99 $response = $handler->handle($request);
101 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
H A DSiteLogsDataTest.php46 $response = $this->createMock(ResponseInterface::class);
47 $response->method('getStatusCode')->willReturn(StatusCodeInterface::STATUS_OK);
50 $data_tables_service->method('handleQuery')->willReturn($response);
53 $response = $handler->handle($request);
55 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
H A DModuleActionTest.php33 use function response; alias
53 $response = $handler->handle($request);
55 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
56 self::assertSame('It works!', (string) $response->getBody());
127 return response('It works!');
/webtrees/tests/app/Http/Middleware/
H A DAuthAdministratorTest.php31 use function response; alias
39 $handler->method('handle')->willReturn(response('lorem ipsum'));
46 $response = $middleware->process($request, $handler);
48 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
49 self::assertSame('lorem ipsum', (string) $response->getBody());
58 $handler->method('handle')->willReturn(response('lorem ipsum'));
72 $handler->method('handle')->willReturn(response('lorem ipsum'));
76 $response = $middleware->process($request, $handler);
78 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DAuthModeratorTest.php32 use function response; alias
40 $handler->method('handle')->willReturn(response('lorem ipsum'));
50 $response = $middleware->process($request, $handler);
52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
53 self::assertSame('lorem ipsum', (string) $response->getBody());
62 $handler->method('handle')->willReturn(response('lorem ipsum'));
79 $handler->method('handle')->willReturn(response('lorem ipsum'));
85 $response = $middleware->process($request, $handler);
87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DAuthMemberTest.php32 use function response; alias
40 $handler->method('handle')->willReturn(response('lorem ipsum'));
50 $response = $middleware->process($request, $handler);
52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
53 self::assertSame('lorem ipsum', (string) $response->getBody());
62 $handler->method('handle')->willReturn(response('lorem ipsum'));
79 $handler->method('handle')->willReturn(response('lorem ipsum'));
85 $response = $middleware->process($request, $handler);
87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DAuthEditorTest.php32 use function response; alias
40 $handler->method('handle')->willReturn(response('lorem ipsum'));
50 $response = $middleware->process($request, $handler);
52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
53 self::assertSame('lorem ipsum', (string) $response->getBody());
62 $handler->method('handle')->willReturn(response('lorem ipsum'));
79 $handler->method('handle')->willReturn(response('lorem ipsum'));
85 $response = $middleware->process($request, $handler);
87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DAuthManagerTest.php32 use function response; alias
40 $handler->method('handle')->willReturn(response('lorem ipsum'));
50 $response = $middleware->process($request, $handler);
52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
53 self::assertSame('lorem ipsum', (string) $response->getBody());
62 $handler->method('handle')->willReturn(response('lorem ipsum'));
79 $handler->method('handle')->willReturn(response('lorem ipsum'));
85 $response = $middleware->process($request, $handler);
87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DBootModulesTest.php29 use function response; alias
39 $handler->method('handle')->willReturn(response('It works!'));
49 $response = $middleware->process($request, $handler);
51 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
52 self::assertSame('It works!', (string) $response->getBody());
H A DCheckForMaintenanceModeTest.php27 use function response; alias
35 $handler->method('handle')->willReturn(response());
39 $response = $middleware->process($request, $handler);
41 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode());
H A DNoRouteFoundTest.php27 use function response; alias
35 $handler->method('handle')->willReturn(response());
39 $response = $middleware->process($request, $handler);
41 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DDoHousekeepingTest.php28 use function response; alias
36 $handler->method('handle')->willReturn(response());
40 $response = $middleware->process($request, $handler);
42 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode());
/webtrees/app/Http/RequestHandlers/
H A DUpgradeWizardStep.php44 use function response; alias
141 return response('', StatusCodeInterface::STATUS_NO_CONTENT);
164 return response(view('components/alert-success', [
180 return response(view('components/alert-success', [
193 return response(view('components/alert-danger', [
198 return response(view('components/alert-success', [
216 return response(view('components/alert-success', [
240 return response(view('components/alert-success', [
264 return response(view('components/alert-success', [
293 return response(view('components/alert-success', [
H A DReportGenerate.php40 use function response; alias
104 $response = $this->viewResponse('report-page', [
110 …$response = $response->withHeader('content-disposition', 'attachment; filename="' . addcslashes($r…
113 return $response;
126 return response($pdf, StatusCodeInterface::STATUS_OK, $headers);
H A DPing.php27 use function response; alias
52 return response('ERROR');
56 return response('WARNING');
59 return response('OK');
/webtrees/app/Factories/
H A DResponseFactory.php101 …public function response(string|array|object $content = '', int $code = StatusCodeInterface::STATU… function in Fisharebest\\Webtrees\\Factories\\ResponseFactory
116 $response = $this->response_factory
121 $response = $response->withHeader($key, $value);
124 return $response;
157 return $this->response($html, $status);
/webtrees/app/Module/
H A DModuleMapAutocompleteTrait.php67 $response = $client->send($request);
69 if ($response->getStatusCode() === StatusCodeInterface::STATUS_OK) {
70 return $this->parsePlaceNameSearchResponse($response);
95 * @param ResponseInterface $response
99 protected function parsePlaceNameSearchResponse(ResponseInterface $response): array argument
H A DStatisticsChartModule.php246 return response($statistics->chartDistribution(
253 return response($statistics->chartDistribution(
259 return response($statistics->chartDistribution(
265 return response($statistics->chartDistribution(
317 …return response($this->myPlot($chart_title, $x_axis, $x_axis_title, $ydata, $y_axis_title, $z_axis…
366 …return response($this->myPlot($chart_title, $x_axis, $x_axis_title, $ydata, $y_axis_title, $z_axis…
408 …return response($this->myPlot($chart_title, $x_axis, $x_axis_title, $ydata, $y_axis_title, $z_axis…
457 …return response($this->myPlot($chart_title, $x_axis, $x_axis_title, $ydata, $y_axis_title, $z_axis…
509 …return response($this->myPlot($chart_title, $x_axis, $x_axis_title, $ydata, $y_axis_title, $z_axis…
571 …return response($this->myPlot($chart_title, $x_axis, $x_axis_title, $ydata, $y_axis_title, $z_axis…
[all …]
/webtrees/app/Services/
H A DUpgradeService.php155 $response = $client->get($url, self::GUZZLE_OPTIONS);
156 $stream = $response->getBody();
348 $response = $client->get(self::UPDATE_URL, [
352 if ($response->getStatusCode() === StatusCodeInterface::STATUS_OK) {
353 Site::setPreference('LATEST_WT_VERSION', $response->getBody()->getContents());
356 … Site::setPreference('LATEST_WT_VERSION_ERROR', 'HTTP' . $response->getStatusCode());

123456789