Create a new request based on the HTTP method
string $method HTTP method (GET, POST, PUT, PATCH, HEAD, DELETE, ...):
string|Url $url HTTP URL to connect to:
array|Collection $headers HTTP headers:
string|resource|array|EntityBodyInterface $body Body to send in the request:
public function create($method, $url, $headers = null, $body = null);