Session handler for persistent requests and default parameters
Description
Allows various options to be set as default values, and merges both the options and URL properties together. A base URL can be set for all requests, with all subrequests resolved from this. Base options can be set (including a shared cookie jar), then overridden for individual requests.
Methods
Name | Description |
---|---|
Requests_Session::__construct | Create a new session |
Requests_Session::__get | Get a property’s value |
Requests_Session::__isset | Remove a property’s value |
Requests_Session::__set | Set a property’s value |
Requests_Session::__unset | Remove a property’s value |
Requests_Session::delete | Send a DELETE request |
Requests_Session::get | Send a GET request |
Requests_Session::head | Send a HEAD request |
Requests_Session::merge_request | Merge a request’s data with the default data |
Requests_Session::patch | Send a PATCH request |
Requests_Session::post | Send a POST request |
Requests_Session::put | Send a PUT request |
Requests_Session::request | Main interface for HTTP requests |
Requests_Session::request_multiple | Send multiple HTTP requests simultaneously |
User Contributed Notes
You must log in before being able to contribute a note or feedback.