Skip to content
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

how to debug #802

Closed
zachary opened this issue Sep 18, 2019 · 1 comment
Closed

how to debug #802

zachary opened this issue Sep 18, 2019 · 1 comment

Comments

@zachary
Copy link

zachary commented Sep 18, 2019

How to debug like guzzle client request
Types

    bool
    fopen() resource

Default

None

Constant

GuzzleHttp\RequestOptions::DEBUG

$client->request('GET', '/get', ['debug' => true]);

thanks

@ramsey
Copy link
Contributor

ramsey commented Oct 28, 2020

You may create your own Guzzle client first and set the debug request option on it. Then, set that client as the HTTP client to use with the provider. Like this:

$client = new GuzzleHttp\Client([
    'debug' => true,
]);

$provider->setHttpClient($client);

Now, all requests made by the provider will use your custom client with it's custom options.

@ramsey ramsey closed this as completed Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants