Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Http.dll Namespace: CloudNimble.EasyAF.Http Inheritance: System.Object

Syntax

Summary

Copies origin, identity, and headers from an outer HttpContext onto an inner in-process request so the inner pipeline sees the public URL and the same user.

Remarks

The caller constructs the inner HttpContext (typically new DefaultHttpContext() in an ASP.NET Core app, or IFeatureCollection)). This type stays on Microsoft.AspNetCore.Http.Abstractions and does not construct a context.

Examples

Methods

ConfigureRequest

Sets method, path, and query on inner, and optionally replaces the request body.

Syntax

Parameters

Exceptions

CopyFromOuter

Copies scheme, host, path base, user, and non-skipped headers from outer onto inner. When outer is null, uses http / localhost and an empty principal.

Syntax

Parameters

Exceptions

Remarks

Scheme, host, and path base come from the outer request so generated links match the public URL. Other request headers are copied except hop-by-hop, entity-body, and HTTP conditionals (see InnerHttpContext.SkippedRequestHeaders).

CopyIncomingHeaders

Copies outer request headers onto the inner call, skipping InnerHttpContext.SkippedRequestHeaders.

Syntax

Parameters

Exceptions