Skip to main content

Definition

Assembly: Microsoft.AspNetCore.Http.Abstractions.dll Namespace: Microsoft.AspNetCore.Http

Syntax

Microsoft.AspNetCore.Http.HttpRequest

Summary

This type is defined in Microsoft.AspNetCore.Http.Abstractions.

Remarks

See Microsoft documentation for more information about the rest of the API.

Methods

IsLocal Extension

Extension method from Microsoft.AspNetCore.Http.Restier_HttpRequestExtensions
Determines whether or not the request is being made on the same machine as the server itself.

Syntax

public static bool IsLocal(Microsoft.AspNetCore.Http.HttpRequest req)

Parameters

NameTypeDescription
reqMicrosoft.AspNetCore.Http.HttpRequest-

Returns

Type: bool

Remarks

Taken from: https://www.strathweb.com/2016/04/request-islocal-in-asp-net-core.