Pickles Framework Documentation

Server

Interface Server

Represents a wrapper around PHP's superglobal $_SERVER, allowing for better abstraction, testability, and dependency injection.

This interface provides methods to access HTTP request information and send a response.

Table of Contents

Methods

getRequest()  : Request
Get request sent by the client.
sendResponse()  : void
Sends the provided HTTP response to the client.

Methods

sendResponse()

Sends the provided HTTP response to the client.

public sendResponse(Response $response) : void
Parameters
$response : Response

The response object to be sent.


        
On this page

Search results