public function jsonSerialize()
    {
        return [
            'host' => $this->host,
            'uri' => $this->uri,
            'method' => $this->method,
            'headers' => $this->headers,
            'body' => $this->body
        ];
    }
public function jsonSerialize()
    {
        return [
            'host' => $this->host,
            'uri' => $this->uri,
            'method' => $this->method,
            'headers' => $this->headers,
            'body' => $this->body
        ];
    }
public function jsonSerialize ( ) { return [ 'host' => $ this -> host , 'uri' => $ this -> uri , 'method' => $ this -> method , 'headers' => $ this -> headers , 'body' => $ this -> body ] ; }
Serialize request properties for JSON as array

@return array
Serialize request properties for JSON as array