Interface IHttpInterceptor
Holds actions to run before and / or after every http request
Namespace: Onbox.Core.V8.Http
Assembly: Onbox.Core.dll
Syntax
public interface IHttpInterceptor
Methods
| Improve this Doc View SourceAfterSending(HttpResponseMessage)
When the request gets from remote, can be used to catch exceptions, process failed requests or validate results
Declaration
void AfterSending(HttpResponseMessage response)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpResponseMessage | response |
BeforeSending(HttpRequestMessage)
Before the request is sent, can be used to inject headers, tokens or validation
Declaration
void BeforeSending(HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpRequestMessage | request |