Create a request from URL parts as returned from parse_url()
string $method HTTP method (GET, POST, PUT, HEAD, DELETE, etc):
array $urlParts URL parts containing the same keys as parse_url():
array|Collection $headers HTTP headers:
string|resource|array|EntityBodyInterface $body Body to send in the request:
string $protocol Protocol (HTTP, SPYDY, etc):
string $protocolVersion 1.0, 1.1, etc:
public function fromParts($method, array $urlParts, $headers = null, $body = null, $protocol = 'HTTP', $protocolVersion = '1.1');