guzzle / guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please document how to use middleware with GuzzleClient

rulatir opened this issue · comments

StackOverflow question

Please document how to use middlewares with GuzzleClient. I am trying to add a middleware to add an "illegal" query param for cache busting. The way of doing things as documented for working with GuzzleHttp\Client directly doesn't seem to be working with GuzzleClient. Please add a working example.

I'm able to use kamermans\OAuth2 middleware for authing requests in-flight. Wire up your Guzzle setting the Handler in the Client and pass it along to the GuzzleService().