mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
959a9655c8
Co-authored-by: Cody Robibero <cody@robibe.ro>
25 lines
794 B
C#
25 lines
794 B
C#
#pragma warning disable CS1591
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace MediaBrowser.Model.Services
|
|
{
|
|
public interface IHasRequestFilter
|
|
{
|
|
/// <summary>
|
|
/// Gets the order in which Request Filters are executed.
|
|
/// <0 Executed before global request filters.
|
|
/// >0 Executed after global request filters.
|
|
/// </summary>
|
|
int Priority { get; }
|
|
|
|
/// <summary>
|
|
/// The request filter is executed before the service.
|
|
/// </summary>
|
|
/// <param name="req">The http request wrapper.</param>
|
|
/// <param name="res">The http response wrapper.</param>
|
|
/// <param name="requestDto">The request DTO.</param>
|
|
void RequestFilter(IRequest req, HttpResponse res, object requestDto);
|
|
}
|
|
}
|