You are here

public function AcquiaLiftDrupalHttpClientInterface::post in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 includes/acquia_lift.classes.inc \AcquiaLiftDrupalHttpClientInterface::post()

Create a POST request for the client

Parameters

string|array $uri Resource URI:

array|Collection $headers HTTP headers:

array|Collection|string|EntityBodyInterface $postBody POST body. Can be a string, EntityBody, or: associative array of POST fields to send in the body of the request. Prefix a value in the array with the @ symbol to reference a file.

array $options Options to apply to the request:

2 methods override AcquiaLiftDrupalHttpClientInterface::post()
AcquiaLiftDrupalHttpClient::post in includes/AcquiaLiftDrupalHttpClient.inc
Implements AcquiaLiftDrupalHttpClientInterface::post().
DummyAcquiaLiftHttpClient::post in tests/acquia_lift.test_classes.inc
Implements AcquiaLiftDrupalHttpClientInterface::post().

File

includes/AcquiaLiftDrupalHttpClientInterface.inc, line 51

Class

AcquiaLiftDrupalHttpClientInterface
A simple interface for http clients.

Code

public function post($uri = null, $headers = null, $body = null, array $options = array());