kitetail / zttp

A developer-experience focused HTTP client, optimized for most common use cases.
MIT License
1.68k stars 120 forks source link

Add ability to set configuration all at once #60

Closed davidhemphill closed 6 years ago

davidhemphill commented 6 years ago

Sometimes you just want to configure Zttp all at once or you need to set an option on the underlying Guzzle client that Zttp doesn't expose:

Zttp::configure([
    'headers' => [
        'Accept' => ['text/xml'],
    ],
]);
adamwathan commented 6 years ago

Feel like renaming this to withOptions to match the naming style of the other methods?

davidhemphill commented 6 years ago

Done! This actually came to mind randomly yesterday too.

adamwathan commented 6 years ago

giddy-up