diff --git a/api-2.x/classes/WpOrg-Requests-Auth-Basic.html b/api-2.x/classes/WpOrg-Requests-Auth-Basic.html
index edb709d5c..0f59badba 100644
--- a/api-2.x/classes/WpOrg-Requests-Auth-Basic.html
+++ b/api-2.x/classes/WpOrg-Requests-Auth-Basic.html
@@ -69,6 +69,10 @@
Set cURL parameters before the data is sent
+ Set cURL parameters before the data is sent.
public
@@ -486,7 +490,7 @@ Parameters
: resource|CurlHandle
-
@@ -512,11 +516,11 @@ Add extra headers to the request before sending
+ Add extra headers to the request before sending.
public
@@ -533,7 +537,7 @@ Parameters
: string
-
@@ -559,7 +563,7 @@
@@ -598,7 +602,7 @@
@@ -692,6 +696,8 @@
@@ -566,7 +576,7 @@ Parameters
-
$name
- : string
+ : int|string
-
The name of the cookie.
@@ -626,7 +636,7 @@
-
InvalidArgument
-
When the passed $name argument is not a string.
+ When the passed $name argument is not an integer or string that conforms to RFC 2616.
@@ -690,7 +700,7 @@
@@ -727,7 +737,7 @@
@@ -782,7 +792,7 @@
@@ -984,7 +994,7 @@ Parameters
-
$cookie_header
- : string
+ : int|string
-
Cookie header value (from a Set-Cookie header)
@@ -1062,7 +1072,7 @@
@@ -377,7 +381,7 @@
@@ -451,7 +455,7 @@
@@ -556,7 +560,7 @@
@@ -619,6 +623,8 @@ Return values
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
+ d=document.getElementsByClassName("line-numbers");
+ d[0].scrollTop = d[0].children[1].offsetTop;
return;
}
diff --git a/api-2.x/classes/WpOrg-Requests-Exception-Http-Status304.html b/api-2.x/classes/WpOrg-Requests-Exception-Http-Status304.html
index 428ba2f6c..8fe1fab4f 100644
--- a/api-2.x/classes/WpOrg-Requests-Exception-Http-Status304.html
+++ b/api-2.x/classes/WpOrg-Requests-Exception-Http-Status304.html
@@ -69,6 +69,10 @@
-
+
@@ -389,7 +389,7 @@
@@ -420,7 +420,7 @@
@@ -451,7 +451,7 @@
@@ -482,7 +482,7 @@
@@ -513,7 +513,7 @@
@@ -544,7 +544,7 @@
@@ -575,7 +575,7 @@
@@ -606,7 +606,7 @@
@@ -646,7 +646,7 @@
-
+
@@ -675,7 +675,7 @@
@@ -683,7 +683,7 @@
public
- static encode(string|Stringable $hostname) : string
+ static encode(string|Stringable $hostname) : string
@@ -693,7 +693,7 @@ Parameters
-
$hostname
- : string|Stringable
+ : string|Stringable
-
Hostname
@@ -747,7 +747,7 @@
@@ -849,7 +849,7 @@
@@ -911,7 +911,6 @@ Return values
int|float
—
New bias
-function adapt(delta,numpoints,firsttime):
@@ -931,7 +930,7 @@
@@ -1010,7 +1009,7 @@
@@ -1065,7 +1064,7 @@
@@ -1163,6 +1162,8 @@ Return values
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
+ d=document.getElementsByClassName("line-numbers");
+ d[0].scrollTop = d[0].children[1].offsetTop;
return;
}
diff --git a/api-2.x/classes/WpOrg-Requests-Ipv6.html b/api-2.x/classes/WpOrg-Requests-Ipv6.html
index a14a82b8f..047f4a5b0 100644
--- a/api-2.x/classes/WpOrg-Requests-Ipv6.html
+++ b/api-2.x/classes/WpOrg-Requests-Ipv6.html
@@ -69,6 +69,10 @@
-
+
@@ -244,7 +244,7 @@
@@ -334,6 +334,8 @@
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
+ d=document.getElementsByClassName("line-numbers");
+ d[0].scrollTop = d[0].children[1].offsetTop;
return;
}
diff --git a/api-2.x/classes/WpOrg-Requests-Requests.html b/api-2.x/classes/WpOrg-Requests-Requests.html
index 96fb26b07..0e2322de5 100644
--- a/api-2.x/classes/WpOrg-Requests-Requests.html
+++ b/api-2.x/classes/WpOrg-Requests-Requests.html
@@ -69,6 +69,10 @@
The $options parameter takes an associative array with the following
options:
--
-
timeout: How long should we wait for a response?
+ timeout: How long should we wait for a response?
Note: for cURL, a minimum of 1 second applies, as DNS resolution
operates at second-resolution only.
(float, seconds with a millisecond precision, default: 10, example: 0.01)
--
-
connect_timeout: How long should we wait while trying to connect?
+ connect_timeout: How long should we wait while trying to connect?
(float, seconds with a millisecond precision, default: 10, example: 0.01)
--
-
useragent: Useragent to send to the server
+ useragent: Useragent to send to the server
(string, default: php-requests/$version)
--
-
follow_redirects: Should we follow 3xx redirects?
-(boolean, default: true)
--
-
redirects: How many times should we redirect before erroring?
-(integer, default: 10)
--
-
blocking: Should we block processing on this request?
-(boolean, default: true)
--
-
filename: File to stream the body to instead.
-(string|boolean, default: false)
--
-
auth: Authentication handler or array of user/password details to use
+ follow_redirects: Should we follow 3xx redirects?
+(bool, default: true)
+redirects: How many times should we redirect before erroring?
+(int, default: 10)
+blocking: Should we block processing on this request?
+(bool, default: true)
+filename: File to stream the body to instead.
+(string|bool, default: false)
+auth: Authentication handler or array of user/password details to use
for Basic authentication
-(\WpOrg\Requests\Auth|array|boolean, default: false)
--
-
proxy: Proxy details to use for proxy by-passing and authentication
-(\WpOrg\Requests\Proxy|array|string|boolean, default: false)
--
-
max_bytes: Limit for the response body size.
-(integer|boolean, default: false)
--
-
idn: Enable IDN parsing
-(boolean, default: true)
--
-
transport: Custom transport. Either a class name, or a
+(\WpOrg\Requests\Auth|array|bool, default: false)
+proxy: Proxy details to use for proxy by-passing and authentication
+(\WpOrg\Requests\Proxy|array|string|bool, default: false)
+max_bytes: Limit for the response body size.
+(int|bool, default: false)
+idn: Enable IDN parsing
+(bool, default: true)
+transport: Custom transport. Either a class name, or a
transport object. Defaults to the first working transport from
Requests::getTransport()
(string|\WpOrg\Requests\Transport, default: Requests::getTransport())
--
-
hooks: Hooks handler.
+ hooks: Hooks handler.
(\WpOrg\Requests\HookManager, default: new WpOrg\Requests\Hooks())
--
-
verify: Should we verify SSL certificates? Allows passing in a custom
+ verify: Should we verify SSL certificates? Allows passing in a custom
certificate file as a string. (Using true uses the system-wide root
certificate store instead, but this may have different behaviour
across transports.)
-(string|boolean, default: certificates/cacert.pem)
--
-
verifyname: Should we verify the common name in the SSL certificate?
-(boolean, default: true)
--
-
data_format: How should we send the $data parameter?
+(string|bool, default: certificates/cacert.pem)
+verifyname: Should we verify the common name in the SSL certificate?
+(bool, default: true)
+data_format: How should we send the $data parameter?
(string, one of 'query' or 'body', default: 'query' for
HEAD/GET/DELETE, 'body' for POST/PUT/OPTIONS/PATCH)
@@ -2111,7 +2101,7 @@ Parameters
-
$url
- : string|Stringable
+ : string|Stringable
-
URL to request
@@ -2227,7 +2217,7 @@
@@ -2246,24 +2236,19 @@
multiple.request.complete callback.
The request fields value is an associative array with the following keys:
--
-
url: Request URL Same as the $url parameter to
+ url: Request URL Same as the $url parameter to
Requests::request()
(string, required)
--
-
headers: Associative array of header fields. Same as the $headers
+ headers: Associative array of header fields. Same as the $headers
parameter to Requests::request()
(array, default: array())
--
-
data: Associative array of data fields or a string. Same as the
+ data: Associative array of data fields or a string. Same as the
$data parameter to Requests::request()
(array|string, default: array())
--
-
type: HTTP request type (use \WpOrg\Requests\Requests constants). Same as the $type
+ type: HTTP request type (use \WpOrg\Requests\Requests constants). Same as the $type
parameter to Requests::request()
(string, default: \WpOrg\Requests\Requests::GET)
--
-
cookies: Associative array of cookie name to value, or cookie jar.
+ cookies: Associative array of cookie name to value, or cookie jar.
(array|\WpOrg\Requests\Cookie\Jar)
If the $options parameter is specified, individual requests will
@@ -2271,8 +2256,7 @@
or set all the types to \WpOrg\Requests\Requests::POST, for example.
In addition, the $options parameter takes the following global options:
--
-
complete: A callback for when a request is complete. Takes two
+ complete: A callback for when a request is complete. Takes two
parameters, a \WpOrg\Requests\Response/\WpOrg\Requests\Exception reference, and the
ID from the request array (Note: this can also be overridden on a
per-request basis, although that's a little silly)
@@ -2357,7 +2341,7 @@
@@ -2365,7 +2349,7 @@
public
- static set_certificate_path(string|Stringable|bool $path) : mixed
+ static set_certificate_path(string|Stringable|bool $path) : mixed
@@ -2375,7 +2359,7 @@ Parameters
-
$path
- : string|Stringable|bool
+ : string|Stringable|bool
-
Certificate path, pointing to a PEM file.
@@ -2421,7 +2405,7 @@
@@ -2480,7 +2464,7 @@
@@ -2549,7 +2533,7 @@
@@ -2621,7 +2605,7 @@
@@ -2689,7 +2673,7 @@
@@ -2745,7 +2729,7 @@
@@ -2869,7 +2853,7 @@
@@ -2995,6 +2979,8 @@
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
+ d=document.getElementsByClassName("line-numbers");
+ d[0].scrollTop = d[0].children[1].offsetTop;
return;
}
diff --git a/api-2.x/classes/WpOrg-Requests-Response-Headers.html b/api-2.x/classes/WpOrg-Requests-Response-Headers.html
index 7ef3bf897..5371ba754 100644
--- a/api-2.x/classes/WpOrg-Requests-Response-Headers.html
+++ b/api-2.x/classes/WpOrg-Requests-Response-Headers.html
@@ -69,6 +69,10 @@
-
-
@@ -344,7 +346,7 @@
@@ -391,7 +393,7 @@
@@ -466,7 +468,7 @@
@@ -509,7 +511,7 @@
@@ -551,7 +553,7 @@
@@ -623,7 +625,7 @@
@@ -689,7 +691,7 @@
@@ -749,7 +751,7 @@
@@ -822,7 +824,7 @@
@@ -904,6 +906,8 @@
+ -
+ license
+
+ -
+
+
https://github.com/WordPress/Requests/blob/stable/LICENSE ISC
+
+
+ -
+ link
+
+ -
+ https://github.com/WordPress/Requests
+
+
+
+
Table of Contents
@@ -174,8 +189,7 @@
- - Port
- Find the correct port depending on the Request type.
-
+ PortPort utilities for Requests
@@ -224,6 +238,8 @@
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
+ d=document.getElementsByClassName("line-numbers");
+ d[0].scrollTop = d[0].children[1].offsetTop;
return;
}
diff --git a/api-2.x/files/src-proxy-http.html b/api-2.x/files/src-proxy-http.html
index 0808fa32c..fc66856f3 100644
--- a/api-2.x/files/src-proxy-http.html
+++ b/api-2.x/files/src-proxy-http.html
@@ -69,6 +69,10 @@