We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 564b16c commit 009f6dfCopy full SHA for 009f6df
lib/Client/ModrinthAPIClient.php
@@ -141,6 +141,18 @@ public function setApiToken(?string $token): static
141
return $this->setConfiguration($this->configuration);
142
}
143
144
+ /**
145
+ * Set the HTTP client used for all requests.
146
+ * When null, the default HTTP client from Guzzle will be used.
147
+ * @param ClientInterface|null $httpClient
148
+ * @return $this
149
+ */
150
+ public function setHttpClient(?ClientInterface $httpClient): static
151
+ {
152
+ $this->httpClient = $httpClient;
153
+ return $this->setConfiguration($this->configuration);
154
+ }
155
+
156
/**
157
* Search projects
158
* @param ProjectSearchOptions|null $options
0 commit comments