Interface IHttpServiceBuilder
Регистратор обработчиков запросов сервиса.
Namespace:InfinniPlatform.Http
Assembly:InfinniPlatform.Core.Abstractions.dll
Syntax
public interface IHttpServiceBuilder
Properties
| Improve this Doc View SourceDelete
Правила обработки DELETE-запросов.
Declaration
IHttpServiceRouteBuilder Delete { get; }
Property Value
Type | Description |
---|---|
IHttpServiceRouteBuilder |
Get
Правила обработки GET-запросов.
Declaration
IHttpServiceRouteBuilder Get { get; }
Property Value
Type | Description |
---|---|
IHttpServiceRouteBuilder |
OnAfter
Постобработчик запросов.
Declaration
Func<IHttpRequest, object, Task<object>> OnAfter { get; set; }
Property Value
Type | Description |
---|---|
Func<IHttpRequest, System.Object, Task<System.Object>> |
OnBefore
Предобработчик запросов.
Declaration
Func<IHttpRequest, Task<object>> OnBefore { get; set; }
Property Value
Type | Description |
---|---|
Func<IHttpRequest, Task<System.Object>> |
OnError
Обработчик исключений.
Declaration
Func<IHttpRequest, Exception, Task<object>> OnError { get; set; }
Property Value
Type | Description |
---|---|
Func<IHttpRequest, Exception, Task<System.Object>> |
Patch
Правила обработки PATCH-запросов.
Declaration
IHttpServiceRouteBuilder Patch { get; }
Property Value
Type | Description |
---|---|
IHttpServiceRouteBuilder |
Post
Правила обработки POST-запросов.
Declaration
IHttpServiceRouteBuilder Post { get; }
Property Value
Type | Description |
---|---|
IHttpServiceRouteBuilder |
Put
Правила обработки PUT-запросов.
Declaration
IHttpServiceRouteBuilder Put { get; }
Property Value
Type | Description |
---|---|
IHttpServiceRouteBuilder |
ResultConverter
Конвертер результата.
Declaration
Func<object, IHttpResponse> ResultConverter { get; set; }
Property Value
Type | Description |
---|---|
Func<System.Object, IHttpResponse> |
ServicePath
Базовый путь сервиса.
Declaration
string ServicePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |