Skip to content

$httpOptions for \GuzzleHttp\Client #14

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

Merged
merged 3 commits into from
Sep 5, 2019

Conversation

actionm
Copy link
Contributor

@actionm actionm commented Sep 3, 2019

#12 (comment)

$client = new Client(
    'http://api.graphql.com',
    [],
    [ 
        'connect_timeout' => 5,
        'timeout' => 5,
        'headers' => [
            'Authorization' => 'Basic xyz'
            'User-Agent' => 'testing/1.0',
        ],
        'proxy' => [
                'http'  => 'tcp://localhost:8125', // Use this proxy with "http"
                'https' => 'tcp://localhost:9124', // Use this proxy with "https",
                'no' => ['.mit.edu', 'foo.com']    // Don't use a proxy with these
        ],
        'cert' => ['/path/server.pem', 'password']
        ...
    ]
);

@mghoneimy
Copy link
Owner

@actionm All your changes have been accepted! Thank you and congrats on your first contribution 😄

@mghoneimy mghoneimy merged commit c8a6642 into mghoneimy:master Sep 5, 2019
@mghoneimy mghoneimy added enhancement New feature or request good first issue Good for newcomers labels Sep 5, 2019
@actionm actionm deleted the dev-master branch September 5, 2019 09:44
@actionm
Copy link
Contributor Author

actionm commented Sep 5, 2019

@mghoneimy Thank you, please review other important PRs #15, mghoneimy/php-graphql-oqm#2. Finally we need to modify https://github.com/mghoneimy/php-graphql-oqmgraphql-oqm to fix some bugs described in mghoneimy/php-graphql-oqm#1.

@mghoneimy
Copy link
Owner

@actionm I'm planning to do that over the weekend. I don't have computer access atm, had to review this PR over my phone 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants