Methods summary
	
		| 
			 public static
			callable
			
			 | 
		#
		cookies( )
			Middleware that adds cookies to requests. 
			Middleware that adds cookies to requests. The options array must be set to a CookieJarInterface in order to use
cookies. This is typically handled for you by a client. Returns
					callableReturns a function that accepts the next handler.
 | 
	
		| 
			 public static
			callable
			
			 | 
		#
		httpErrors( )
			Middleware that throws exceptions for 4xx or 5xx responses when the
"http_error" request option is set to true. 
			Middleware that throws exceptions for 4xx or 5xx responses when the
"http_error" request option is set to true. Returns
					callableReturns a function that accepts the next handler.
 | 
	
		| 
			 public static
			callable
			
			 | 
		#
		history( array & $container )
			Middleware that pushes history data to an ArrayAccess container. 
			Middleware that pushes history data to an ArrayAccess container. Parameters
					$containerContainer to hold the history (by reference).Returns
					callableReturns a function that accepts the next handler.
 Throws
					InvalidArgumentExceptionif container is not an array or ArrayAccess.
 | 
	
		| 
			 public static
			callable
			
			 | 
		#
		tap( callable $before = null, callable $after = null )
			Middleware that invokes a callback before and after sending a request. 
			Middleware that invokes a callback before and after sending a request. The provided listener cannot modify or alter the response. It simply
"taps" into the chain to be notified before returning the promise. The
before listener accepts a request and options array, and the after
listener accepts a request, options array, and response promise. Parameters
					$beforeFunction to invoke before forwarding the request.$afterFunction invoked after forwarding.Returns
					callableReturns a function that accepts the next handler.
 | 
	
		| 
			 public static
			callable
			
			 | 
		#
		redirect( )
			Middleware that handles request redirects. 
			Middleware that handles request redirects. Returns
					callableReturns a function that accepts the next handler.
 | 
	
		| 
			 public static
			callable
			
			 | 
		#
		retry( callable $decider, callable $delay = null )
			Middleware that retries requests based on the boolean result of
invoking the provided "decider" function. 
			Middleware that retries requests based on the boolean result of
invoking the provided "decider" function. If no delay function is provided, a simple implementation of exponential
backoff will be utilized. Parameters
					$deciderFunction that accepts the number of retries,
                         a request, [response], and [exception] and
                         returns true if the request is to be retried.$delayFunction that accepts the number of retries and
                         returns the number of milliseconds to delay.Returns
					callableReturns a function that accepts the next handler.
 | 
	
		| 
			 public static
			callable
			
			 | 
		#
		log( Psr\Log\LoggerInterface $logger, GuzzleHttp\MessageFormatter$formatter, string $logLevel = GuzzleHttp\LogLevel::INFO )
			Middleware that logs requests, responses, and errors using a message
formatter. 
			Middleware that logs requests, responses, and errors using a message
formatter. Parameters
					$loggerLogs messages.$formatterFormatter used to create message strings.$logLevelLevel at which to log requests.Returns
					callableReturns a function that accepts the next handler.
 | 
	
		| 
			 public static
			callable
			
			 | 
		#
		prepareBody( )
			This middleware adds a default content-type if possible, a default
content-length or transfer-encoding header, and the expect header. 
			This middleware adds a default content-type if possible, a default
content-length or transfer-encoding header, and the expect header. Returns
					callable
				 | 
	
		| 
			 public static
			callable
			
			 | 
		#
		mapRequest( callable $fn )
			Middleware that applies a map function to the request before passing to
the next handler. 
			Middleware that applies a map function to the request before passing to
the next handler. Parameters
					$fnFunction that accepts a RequestInterface and returns
                    a RequestInterface.Returns
					callable
				 | 
	
		| 
			 public static
			callable
			
			 | 
		#
		mapResponse( callable $fn )
			Middleware that applies a map function to the resolved promise's
response. 
			Middleware that applies a map function to the resolved promise's
response. Parameters
					$fnFunction that accepts a ResponseInterface and
                    returns a ResponseInterface.Returns
					callable
				 |