Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

HTTP Client Manager

HTTP Client Manager is a module for developers having to interact with REST Services.

Its main goal is to define a standard usage when dealing with HTTP clients by introducing a new Guzzle based plugin which allows you to manage HTTP clients by using Guzzle Service Descriptions:

"Service descriptions define web service APIs by documenting each operation, the operation's parameters, validation options for each parameter, an operation's response, how the response is parsed, and any errors that can be raised for an operation. Writing a service description for a web service allows you to more quickly consume a web service than writing concrete commands for each web service operation."

Introduction

Working with (Guzzle) HTTP Client.

Installation

Downloading and installing the module.

Guzzle Service Descriptions

How Guzzle Service Descriptions work.

Extending Commands

How to describe a Command by extending an existing one

HTTP Services API

How to integrate Guzzle Service descriptions within Drupal.

Overriding HTTP Services API

How to override a HTTP Service API.

Optimizing Guzzle Service Descriptions

Best practices for optimizing our Guzzle Service Descriptions.

How to instantiate an HTTP Client

Understanding how to instantiate an HTTP Client.

Querying REST Services

How to use Guzzle Commands described inside your Guzzle Service Descriptions.

The Handler stack

A quick guide to the Handler stack used by Guzzle.

HTTP Config Requests

What are and when we need them.

HTTP Service API Wrappers

An advanced usage pattern.

Guide maintainers

aronne's picture