Skip to content

Latest commit

 

History

History
172 lines (140 loc) · 3.31 KB

Microsoft.AspNetCore.Http.md

File metadata and controls

172 lines (140 loc) · 3.31 KB

Microsoft.AspNetCore.Http


AnonymousAccessExtensions

public static class AnonymousAccessExtensions

Static Methods

AddAnonymousAccessForDevelopment

IServiceCollection AddAnonymousAccessForDevelopment(this IServiceCollection services)

FormFileExtensions

public static class FormFileExtensions

Static Methods

GetBytes

Task<byte[]> GetBytes(this IFormFile formFile)

HeaderDictionaryExtensions

public static class HeaderDictionaryExtensions

Static Methods

AddCorrelationId

string AddCorrelationId(this IHeaderDictionary headers, string correlationId)

GetCallingOnBehalfOfIdentity

string GetCallingOnBehalfOfIdentity(this IHeaderDictionary headers)

GetOrAddCorrelationId

string GetOrAddCorrelationId(this IHeaderDictionary headers)

Summary: Gets the correlation id from header , if not found a new is added to the header and returned.

Parameters:
     headers  -  The headers.

Returns: Correlation id for request.

GetOrAddRequestId

string GetOrAddRequestId(this IHeaderDictionary headers)

HttpContextExExtensions

public static class HttpContextExExtensions

Static Methods

GetCorrelationId

string GetCorrelationId(this HttpContext context)

GetRequestId

string GetRequestId(this HttpContext context)

HttpRequestExExtensions

public static class HttpRequestExExtensions

Static Methods

GetRawBodyBytesAsync

Task<byte[]> GetRawBodyBytesAsync(this HttpRequest request)

Summary: Retrieves the raw body as a byte array from the Request.Body stream

Parameters:
     request  -  Request instance to applies to

GetRawBodyStringAsync

Task<string> GetRawBodyStringAsync(this HttpRequest request, Encoding encoding = null)

Summary: Retrieve the raw body as a string from the Request.Body stream

Parameters:
     request  -  Request instance to applies to
     encoding  -  Optional - Encoding, defaults to UTF8


WellKnownHttpHeaders

public static class WellKnownHttpHeaders

Static Fields

CallingIdentity

string CallingIdentity

Continuation

string Continuation

CorrelationId

string CorrelationId

ETag

string ETag

Filename

string Filename

IfMatch

string IfMatch

IfNoneMatch

string IfNoneMatch

MaxItemCount

string MaxItemCount

OnBehalfOf

string OnBehalfOf

RequestId

string RequestId

ValueSeparator

string ValueSeparator

Generated by MarkdownCodeDoc version 1.2