August 2016
Intermediate to advanced
610 pages
11h 55m
English
REST clients use HyperText Transfer Protocol (HTTP) to generate requests to external web services. By changing the HTTP method, we can cause the external service to perform different operations. Although there are quite a few methods (or verbs) available, we will only focus on GET and POST. In this recipe, we will use the Adapter software design pattern to present two different ways of implementing a REST client.
namespace Application\Web;
class AbstractHttp
{Read now
Unlock full access