Table of Contents

UseRequestIdentifier Method

Definition

UseRequestIdentifier(IApplicationBuilder, Action<RequestIdentifierOptions>)

Adds a request identifier HTTP header to the IApplicationBuilder request execution pipeline.

public static IApplicationBuilder UseRequestIdentifier(this IApplicationBuilder builder, Action<RequestIdentifierOptions> setup = null)

Parameters

builder IApplicationBuilder

The type that provides the mechanisms to configure an application’s request pipeline.

setup Action<RequestIdentifierOptions>

The RequestIdentifierOptions middleware which may be configured.

Returns

IApplicationBuilder

An IApplicationBuilder that can be used to further configure the request pipeline.

Remarks

Default HTTP header name is X-Request-ID.