Improve this Doc View Source

Namespace Dapplo.HttpExtensions

Classes

DataContractJsonSerializerStrategy

HttpBehaviour

This is the default implementation of the IHttpBehaviour, see IHttpBehaviour for details Most values are initialized via the HttpExtensionsGlobals

HttpClientExtensions

Extensions for the HttpClient class

HttpContentExtensions

Extensions for the HttpContent

HttpExtensionsGlobals

These are the globals for some of the important configurable settings When a HttpBehaviour is created, some of the values from here will be copied. (unless diffently specified)

HttpRequestMessageExtensions

Extensions for the HttpRequestMessage class

HttpResponse<TResponse, TErrorResponse>

This container can be used to get the details of a response. It also makes it possible to process the error information, and eventually do something different. You can specify your own container, by using the HttpAttribute.

HttpResponseMessageExtensions

Extensions for the HttpResponseMessage class

JsonArray

Represents the json array.

JsonObject

Represents the json object.

MiscExtensions

Misc extensions

PocoJsonSerializerStrategy

SimpleJson

This class encodes and decodes JSON strings. Spec. details, see http://www.json.org/

JSON uses Arrays and Objects. These correspond here to the datatypes JsonArray(IList) and JsonObject(IDictionary). All numbers are parsed to doubles.

UriActionExtensions

Uri extension which perform an action

UriModifyExtensions

Uri extensions which modify an Uri (return a new one)

UriParseExtensions

Uri extensions which help with parsing

Interfaces

IChangeableHttpBehaviour

This interface extends the IHttpBehaviour but makes it possible to change the values. A use-case would be to call Clone on the IHttpBehaviour and modify the settings, return/assign the new value to a IHttpBehaviour This would be needed to pass the IHttpBehaviour via a CallContext.

IHttpBehaviour

The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.

IHttpContentConverter

This interface is used for all

IHttpSettings

Interface for the global settings, as the DefaultValue attributes are set this CAN be used with Dapplo.Config.
Best example would be:
[IniSection("Network"), Display(Description = "Network / HTTP Settings")]
public interface IHttpConfig : IHttpSettings, IIniSection {
}

(Yes, it's can be empty, the settings are in the IHttpSettings interface) and than assign the generated instance to HttpExtensionsGlobals

IJsonSerializer

This interface makes it possible to change the Json serializer which is used for de- serializing JSON. As a default implementation is used, using SimpleJson.

IJsonSerializerStrategy