C# Класс Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware

Based on https://github.com/aspnet/Proxy/blob/dev/src/Microsoft.AspNetCore.Proxy/ProxyMiddleware.cs Differs in that, if the proxied request returns a 404, we pass through to the next middleware in the chain This is useful for Webpack middleware, because it lets you fall back on prebuilt files on disk for chunks not exposed by the current Webpack config (e.g., DLL/vendor chunks).
Показать файл Открыть проект

Открытые методы

Метод Описание
ConditionalProxyMiddleware ( RequestDelegate next, string pathPrefix, ConditionalProxyMiddlewareOptions options ) : System
Invoke ( HttpContext context ) : System.Threading.Tasks.Task

Приватные методы

Метод Описание
PerformProxyRequest ( HttpContext context ) : Task

Описание методов

ConditionalProxyMiddleware() публичный Метод

public ConditionalProxyMiddleware ( RequestDelegate next, string pathPrefix, ConditionalProxyMiddlewareOptions options ) : System
next RequestDelegate
pathPrefix string
options ConditionalProxyMiddlewareOptions
Результат System

Invoke() публичный Метод

public Invoke ( HttpContext context ) : System.Threading.Tasks.Task
context HttpContext
Результат System.Threading.Tasks.Task