mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-17 18:03:22 +08:00
28 lines
962 B
C#
28 lines
962 B
C#
using System.Collections.Generic;
|
|
using System.Net.Http;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Ocelot.Configuration;
|
|
using Ocelot.DownstreamRouteFinder.UrlMatcher;
|
|
using Ocelot.Errors;
|
|
|
|
namespace Ocelot.Middleware
|
|
{
|
|
public class DownstreamContext
|
|
{
|
|
public DownstreamContext(HttpContext httpContext)
|
|
{
|
|
this.HttpContext = httpContext;
|
|
Errors = new List<Error>();
|
|
}
|
|
|
|
public List<PlaceholderNameAndValue> TemplatePlaceholderNameAndValues { get; set; }
|
|
public ServiceProviderConfiguration ServiceProviderConfiguration {get; set;}
|
|
public HttpContext HttpContext { get; private set; }
|
|
public DownstreamReRoute DownstreamReRoute { get; set; }
|
|
public HttpRequestMessage DownstreamRequest { get; set; }
|
|
public HttpResponseMessage DownstreamResponse { get; set; }
|
|
public List<Error> Errors { get;set; }
|
|
public bool IsError => Errors.Count > 0;
|
|
}
|
|
}
|