diff --git a/frankenphp/frankenphp.php b/frankenphp/frankenphp.php new file mode 100644 index 000000000..99ba64bbc --- /dev/null +++ b/frankenphp/frankenphp.php @@ -0,0 +1,58 @@ +FALSE if the server is terminating, giving the opportunity to the worker script to finish cleanly + */ +function frankenphp_handle_request(callable $callback): bool {} + +/** + * Flushes all response data to the client and finishes the request. + * This allows for time-consuming tasks to be performed without leaving the connection to the client open. + * + * Alias of fastcgi_finish_request. + * + * @link https://www.php.net/manual/en/function.fastcgi-finish-request.php + * + * @return bool Returns TRUE on success or FALSE on failure. + */ +function frankenphp_finish_request(): bool {} + +/** + * Fetches all HTTP request headers from the current request. + * + * Alias of apache_request_headers. + * + * @link https://php.net/manual/en/function.apache-request-headers.php + * + * @return array An associative array of all the HTTP headers in the current request. + */ +function frankenphp_request_headers(): array {} + +/** + * Fetches all HTTP response headers. + * + * Alias of apache_response_headers. + * + * @link https://php.net/manual/en/function.apache-response-headers.php + * + * @return array|false An array of all FrankenPHP response headers on success or FALSE on failure. + */ +function frankenphp_response_headers(): array|bool {}