mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-26 07:52:51 +08:00

* New feature that lets a user do find and replace on an upstream header * can transform downstream and upstream headers, not sure if interface is good * can replace location header with placeholder * added some syntax
20 lines
612 B
C#
20 lines
612 B
C#
using System.Threading.Tasks;
|
|
using Ocelot.Responses;
|
|
using Ocelot.Requester.QoS;
|
|
using System.Net.Http;
|
|
|
|
namespace Ocelot.Request.Builder
|
|
{
|
|
public sealed class HttpRequestCreator : IRequestCreator
|
|
{
|
|
public async Task<Response<Request>> Build(
|
|
HttpRequestMessage httpRequestMessage,
|
|
bool isQos,
|
|
IQoSProvider qosProvider,
|
|
bool useCookieContainer,
|
|
bool allowAutoRedirect)
|
|
{
|
|
return new OkResponse<Request>(new Request(httpRequestMessage, isQos, qosProvider, allowAutoRedirect, useCookieContainer));
|
|
}
|
|
}
|
|
} |