Webiny\Component\Http\Request::init PHP Method

init() protected method

This class is called automatically by SingletonTrait.
protected init ( )
    protected function init()
    {
        $this->query = new Query();
        $this->post = new Post();
        $this->payload = new Payload();
        $this->server = new Server();
        $this->files = new Files();
        $this->env = new Env();
        $this->headers = new Headers();
        if (Http::getConfig()->TrustedProxies) {
            $this->trustedProxies = Http::getConfig()->TrustedProxies->toArray();
        }
    }