mirror of
https://github.com/friendica/friendica
synced 2025-04-29 18:24:23 +02:00
Fixing HTTPClient::post() and introduce HTTPRequestOptions
This commit is contained in:
parent
660a3cd247
commit
e9902401a5
3 changed files with 71 additions and 23 deletions
|
@ -88,9 +88,15 @@ interface IHTTPClient
|
|||
/**
|
||||
* Sends a HTTP request to a given url
|
||||
*
|
||||
* @param string $method A HTTP request ()
|
||||
* @param string $method A HTTP request
|
||||
* @param string $url Url to send to
|
||||
* @param array $opts parameters
|
||||
* @param array $opts (optional parameters) associative array with:
|
||||
* 'body' => (mixed) setting the body for sending data
|
||||
* 'accept_content' => (string array) supply Accept: header with 'accept_content' as the value
|
||||
* 'timeout' => int Timeout in seconds, default system config value or 60 seconds
|
||||
* 'cookiejar' => path to cookie jar file
|
||||
* 'header' => header array
|
||||
* 'content_length' => int maximum File content length
|
||||
*
|
||||
* @return IHTTPResult
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue