Skip to content

Follow HTTP protocol order #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/HttpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ public function options($uri, array $headers = [], $data = [], array $files = []
/**
* Sends a request
*
* @param string|UriInterface $uri
* @param string $method
* @param string|UriInterface $uri
* @param string[] $headers
* @param array|string $data
* @param array $files
Expand All @@ -138,5 +138,5 @@ public function options($uri, array $headers = [], $data = [], array $files = []
*
* @return ResponseInterface
*/
public function send($uri, $method, array $headers = [], $data = [], array $files = []);
public function send($method, $uri, array $headers = [], $data = [], array $files = []);
}
10 changes: 5 additions & 5 deletions src/Message/MessageFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public function setBaseUri($baseUri);
/**
* Creates a new request
*
* @param string|UriInterface $uri
* @param string $method
* @param string|UriInterface $uri
* @param string $protocolVersion
* @param string[] $headers
* @param resource|string|StreamInterface|null $body
Expand All @@ -56,8 +56,8 @@ public function setBaseUri($baseUri);
* @return RequestInterface
*/
public function createRequest(
$uri,
$method = RequestInterface::METHOD_GET,
$uri,
$protocolVersion = RequestInterface::PROTOCOL_VERSION_1_1,
array $headers = [],
$body = null,
Expand All @@ -67,8 +67,8 @@ public function createRequest(
/**
* Creates an internal request
*
* @param string|UriInterface $uri
* @param string $method
* @param string|UriInterface $uri
* @param string $protocolVersion
* @param string[] $headers
* @param array|string $data
Expand All @@ -78,8 +78,8 @@ public function createRequest(
* @return InternalRequestInterface
*/
public function createInternalRequest(
$uri,
$method = RequestInterface::METHOD_GET,
$uri,
$protocolVersion = RequestInterface::PROTOCOL_VERSION_1_1,
array $headers = [],
$data = [],
Expand All @@ -88,7 +88,7 @@ public function createInternalRequest(
);

/**
* Creates a response.
* Creates a response
*
* @param integer $statusCode
* @param string $protocolVersion
Expand Down