2022-10-11 08:57:23 +02:00
< ? php
/** @generate-class-entries */
2025-12-15 16:10:35 +01:00
/** @var int */
const FRANKENPHP_LOG_LEVEL_DEBUG = - 4 ;
/** @var int */
const FRANKENPHP_LOG_LEVEL_INFO = 0 ;
/** @var int */
const FRANKENPHP_LOG_LEVEL_WARN = 4 ;
/** @var int */
const FRANKENPHP_LOG_LEVEL_ERROR = 8 ;
2022-10-11 08:57:23 +02:00
function frankenphp_handle_request ( callable $callback ) : bool {}
2022-10-11 17:40:12 +02:00
function headers_send ( int $status = 200 ) : int {}
2022-11-03 08:36:47 +01:00
function frankenphp_finish_request () : bool {}
/**
* @alias frankenphp_finish_request
*/
function fastcgi_finish_request () : bool {}
2024-01-22 13:23:37 +01:00
2024-01-31 12:34:30 +01:00
function frankenphp_request_headers () : array {}
/**
* @alias frankenphp_request_headers
*/
2024-01-22 13:23:37 +01:00
function apache_request_headers () : array {}
/**
2024-05-08 11:43:39 +02:00
* @alias frankenphp_request_headers
2024-01-22 13:23:37 +01:00
*/
function getallheaders () : array {}
2024-01-31 12:34:30 +01:00
function frankenphp_response_headers () : array | bool {}
/**
* @alias frankenphp_response_headers
*/
function apache_response_headers () : array | bool {}
2025-11-18 09:59:53 +01:00
/**
* @param string|string[] $topics
*/
function mercure_publish ( string | array $topics , string $data = '' , bool $private = false , ? string $id = null , ? string $type = null , ? int $retry = null ) : string {}
2025-12-15 16:10:35 +01:00
/**
* @param int $level The importance or severity of a log event. The higher the level, the more important or severe the event. For more details, see: https://pkg.go.dev/log/slog#Level
* array<string, any> $context Values of the array will be converted to the corresponding Go type (if supported by FrankenPHP) and added to the context of the structured logs using https://pkg.go.dev/log/slog#Attr
*/
function frankenphp_log ( string $message , int $level = 0 , array $context = []) : void {}