We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 685d54c commit 9ed8d1dCopy full SHA for 9ed8d1d
src/Buildable.php
@@ -107,4 +107,28 @@ public function query($query)
107
$this->applyRequestOptions(["query" => $query]);
108
return $this;
109
}
110
+
111
+ /**
112
+ * Ignore all redirects for this request
113
+ *
114
+ * @return $this
115
+ */
116
+ public function withoutRedirects()
117
+ {
118
+ $this->applyRequestOptions(["max_redirects" => 0]);
119
+ return $this;
120
+ }
121
122
123
+ * Change proxy for this request
124
125
+ * @param string $proxy Proxy value for CURLOPT_PROXY
126
+ * @param string $noproxy Comma-separated list of hosts, that do not require proxy
127
128
129
+ public function proxy($proxy = null, $noproxy = null)
130
131
+ $this->applyRequestOptions(["proxy" => $proxy, "no_proxy" => $noproxy]);
132
133
134
0 commit comments