PHP Class Prose\UsingHttp

Great for testing APIs
Inheritance: extends Prose
Show file Open project: datasift/storyplayer

Public Methods

Method Description
delete ( $url, $params = [], $headers = [], $timeout = null )
post ( $url, $params = [], $body = null, $headers = [], $timeout = null )
put ( $url, $params = [], $body = null, $headers = [], $timeout = null )

Protected Methods

Method Description
makeHttpRequest ( $url, string $verb, $params, $body, $headers = [], $timeout = null )

Method Details

delete() public method

public delete ( $url, $params = [], $headers = [], $timeout = null )

makeHttpRequest() protected method

protected makeHttpRequest ( $url, string $verb, $params, $body, $headers = [], $timeout = null )
$verb string

post() public method

public post ( $url, $params = [], $body = null, $headers = [], $timeout = null )

put() public method

public put ( $url, $params = [], $body = null, $headers = [], $timeout = null )