src/Server/StandardServer.php
public function handleRequest($parsedBody = null, $exitWhenDone = false)
    {
        $result = $this->executeRequest($parsedBody);
        $this->helper->sendResponse($result, $exitWhenDone);
    }
public function handleRequest($parsedBody = null, $exitWhenDone = false)
    {
        $result = $this->executeRequest($parsedBody);
        $this->helper->sendResponse($result, $exitWhenDone);
    }
Parses HTTP request, executes and emits response (using standard PHP `header` function and `echo`)

By default (when $parsedBody is not set) it uses PHP globals to parse a request.
It is possible to implement request parsing elsewhere (e.g. using framework Request instance)
and then pass it to the server.

See `executeRequest()` if you prefer to emit response yourself
(e.g. using Response object of some framework)

@param OperationParams|OperationParams[] $parsedBody
@param bool                              $exitWhenDone

@api