- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- Execute HTTP requests with a future-oriented API. For example:
- Class
- Build a result tuple indicating a parse error resulting from a malformed HTTP response.
- Method
- Find value of the first header with given name.
- Method
- Parse an HTTP header block.
- Method
- Parse a raw HTTP response into a <status, body, headers> tuple.
- Method
- Exception-oriented @{method:resolve}. Throws if the status indicates an error occurred.
- Method
- Method
- Add a HTTP basic authentication header to the request.
- Method
- Return list of expected status codes, or null if not set.
- Method
- Set the status codes that are expected in the response. If set, isError on the status object will return true for status codes that are not in the input array. Otherwise, isError will be true for any HTTP status code outside the 2xx range (notwithstanding other errors such as connection or transport issues).
- Method
- Get headers which will be sent with the request. Optionally, you can provide a filter, which will return only headers with that name. For example:
- Method
- Add an HTTP header to the request. The same header name can be specified more than once, which will cause multiple headers to be sent.
- Method
- Get the data which will be sent with the request.
- Method
- Provide data to send along with the request. Note that this is also a constructor parameter; it may be more convenient to provide it there. Data must be a string (in which case it will be sent raw) or an array (in which case it will be encoded and sent as 'application/x-www-form-urlencoded').
- Method
- Get the fully-qualified URI the request will be made to.
- Method
- Set the URI to send the request to. Note that this is also a constructor parameter.
- Method
- Get the HTTP method the request will use.
- Method
- Select the HTTP method (e.g., "GET", "POST", "PUT") to use for the request. By default, requests use "GET".
- Method
- Get the currently configured timeout.
- Method
- Set a timeout for the service call. If the request hasn't resolved yet, the future will resolve with a status that indicates the request timed out. You can determine if a status is a timeout status by calling isTimeout() on the status object.
- Method
- Build a new future which will make an HTTP request to a given URI, with some optional data payload. Since this class is abstract you can't actually instantiate it; instead, build a new @{class:HTTPFuture} or @{class:HTTPSFuture}.
- Method
- Extend HTTP behavior by injecting proxies or compromising SSL.
- Class
- Method
- Method
- Method
- Method
- Method
- Return a @{class:PhutilURI} to proxy requests.
- Method
- Return `true` to disable SSL hostname verification for a URI.
- Method
- Return `true` to disable SSL authority verification for a URI.
- Method
- Human-readable name of this HTTP extension.
- Method
- Socket-based HTTP future, for making HTTP requests using future semantics. This is an alternative to @{class:CURLFuture} which has better resolution behavior (select()-based wait instead of busy wait) but fewer features. You should prefer this class to @{class:CURLFuture} unless you need its advanced features (like HTTP/1.1, chunked transfer encoding, gzip, etc.).
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Very basic HTTPS future.
- Class
- Method
- Method
- Method
- Callback to pass data to cURL.
- Method
- Write a raw HTTP body into the request.
- Method
- Determine whether CURLOPT_CAINFO is usable on this system.
- Method
- Detect strings which will cause cURL to do horrible, insecure things.
- Method
- Produces a value safe to pass to `CURLOPT_POSTFIELDS`.
- Method
- Discard any buffered data. Normally, you call this after reading the data with @{method:read}.
- Method
- Read data from the response buffer.
- Method
- Callback invoked by cURL as it reads HTTP data from the response. We save the data to a buffer.
- Method
- Method
- Attach a file to the request.
- Method
- See T13533. This supports an install-specific Kerberos workflow.
- Method
- Method
- Method
- Method
- Load contents of remote URI. Behaves pretty much like `@file_get_contents($uri)` but doesn't require `allow_url_fopen`.
- Method
- Get the fallback global CA certificate
- Method
- Set the fallback CA certificate if one is not specified for the session, given a string.
- Method
- Set the fallback CA certificate if one is not specified for the session, given a path.
- Method
- Get whether Location headers in the response will be respected.
- Method
- Set whether Location headers in the response will be respected. The default is true.
- Method
- Get the path to the SSL certificate for this session.
- Method
- Set the SSL certificate to use for this session, given a path.
- Method
- Create a temp file containing an SSL cert, and use it for this session.
- Method
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Does this renderer support applying lint patches?
- Method