-
Notifications
You must be signed in to change notification settings - Fork 202
[draft] Issue #267: Http client - first preview #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
For cookies, see: @GhaziTriki Let me know if we should follow up in the direction of this PR, or do things differently. Obviously this cannot be merged as-is. |
@donquixote looks good so far. Let's continue this pathway, and everything should be clear with an example once the implementation is finished. We need a default transport or auto-discovery when not explicitly set. |
src/BigBlueButton.php
Outdated
@@ -470,6 +511,10 @@ public function setJSessionId(string $jSessionId): void | |||
} | |||
|
|||
/** | |||
* Sets curl options. | |||
* | |||
* This has no effect if the instance has a http client. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would be "an http client"..
* This has no effect if the instance has a http client. | |
* This has no effect if the instance has an http client. |
and same for other similar places.
RequestFactoryInterface $requestFactory, | ||
StreamFactoryInterface $streamFactory, | ||
string $baseUrl, | ||
string $secret, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have the UrlBuilder injected instead of passing base url and secret?
Not sure what you mean by this. The fallback to env vars as in the constructor? The main purpose of this package (I think) is to be pulled in as a dependency to be used by other code. |
@GhaziTriki I think eventually we want to be able to inject the UrlBuilder. I think it is better to discuss this separately, see |
* | ||
* @internal | ||
*/ | ||
class BigBlueButtonGuzzleTest extends BigBlueButtonTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a cheap way to run the same tests with curl and with a http client.
In the future we may come up with something better, perhaps.
5501e2c
to
44aafe1
Compare
…ility of the client.
See
This probably won't work. Just a preview prototype to see the general idea.
I would like to split the class, so that the version with a http client does not have methods like
->setTimeOut()
that have no effect. We could use a shared base class for that.