mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-23 22:12:49 +08:00
28 lines
665 B
C#
28 lines
665 B
C#
using Microsoft.AspNetCore.Http;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Ocelot.RateLimit
|
|
{
|
|
public class RateLimitHeaders
|
|
{
|
|
public RateLimitHeaders(HttpContext context, string limit, string remaining, string reset)
|
|
{
|
|
Context = context;
|
|
Limit = limit;
|
|
Remaining = remaining;
|
|
Reset = reset;
|
|
}
|
|
|
|
public HttpContext Context { get; private set; }
|
|
|
|
public string Limit { get; private set; }
|
|
|
|
public string Remaining { get; private set; }
|
|
|
|
public string Reset { get; private set; }
|
|
}
|
|
}
|