Namespace Dapplo.HttpExtensions
Classes
AuthorizationExtensions
Extensions to help with Authorization
HttpBehaviour
This is the default implementation of the IHttpBehaviour, see IHttpBehaviour for details Most values are initialized via the HttpExtensionsGlobals
HttpBehaviourExtensions
Extensions for the HttpBehaviour class
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)
HttpRequestMessageConfiguration
Use this to configure the HttpRequestMessage, created in the HttpRequestMessageFactory
HttpRequestMessageExtensions
Extensions for the HttpRequestMessage class
HttpResponse
This container can be used to get the details of a response. You can specify your own container, by using the HttpAttribute.
HttpResponse<TResponse>
This container can be used to get the details of a response.
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
HttpResponseWithError<TErrorResponse>
This container can be used to get the details of a response without content but with a potential error
MiscExtensions
Misc extensions
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
IHttpRequestConfiguration
This interface is the base interface for configuration information. It makes it possible to supply configuration to different parts of the library during a request, where as a caller you normally don't interact with directly. The interface only specifies the name of the configuration, specific implementations should be used. Instances of this interface are added to the HttpBehaviour, so they are available throughout a request.
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. The default implementation for this, SimpleJson, is included in this project