Namespace: Consultingwerk.Framework.Http
Class 
SmartHttpClient Copy to Clipboard
Parent classes:
OpenEdge.Net.HTTP.HttpClientDecorator

Inherits: OpenEdge.Net.HTTP.HttpClientDecorator
Implements: OpenEdge.Net.HTTP.IHttpClient

File:SmartHttpClient
Purpose:Http Client Decorator
Description:Ability to handle HTTP errors by throwing them as exceptions
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat May 11 01:44:28 CEST 2019
/* Mike Fechner, Consultingwerk Ltd. 13.09.2017
Preprocessor variables for SmartComponentLibrary, WinKit and SmartFramework
based on Consultingwerk/packages.i now



Top Method Summary
Options Name Purpose
+ Execute (IHttpRequest, IHttpResponse) Executes an HTTP request
# HandleHttpError (IHttpResponse) Handles an HTTP Error

Top Constructor Summary
Options Name Purpose
+ SmartHttpClient (IHttpClient) Constructor for the SmartHttpClient class


Method Detail
Top

PUBLIC Execute (IHttpRequest, IHttpResponse)

Purpose: Executes an HTTP request
Notes:

Parameters:
poRequest OpenEdge.Net.HTTP.IHttpRequest
Request parameters (URL, method, etc)
poResponse OpenEdge.Net.HTTP.IHttpResponse
The HTTP Response
Top

PROTECTED HandleHttpError (IHttpResponse)

Purpose: Handles an HTTP Error
Notes:

Parameters:
poResponse OpenEdge.Net.HTTP.IHttpResponse
The IHttpResponse with the error


Constructor Detail
Top

PUBLIC SmartHttpClient (IHttpClient)

Purpose: Constructor for the SmartHttpClient class
Notes:

Parameters:
poHttpClient OpenEdge.Net.HTTP.IHttpClient
The IHttpClient to be decorated


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:13:26