Structr
  • Welcome
  • Utilities
    • Abstractions
      • Check
      • Ensure
      • Money
      • HierarchyId
      • Providers
        • SequentialGuidProvider
      • Extensions
        • DateTime
        • Dictionary
        • DirectoryInfo
        • Enumerable
        • Enum
        • Expression
        • Int
        • Long
        • MemberInfo
        • Object
        • Queryable
        • ServiceCollection
        • String
        • Type
      • Helpers
        • AsyncHelper
        • BindHelper
      • JsonConverters
        • DateOnly
        • TimeOnly
        • StringNumber
    • Collections
      • AutoMapper extensions
    • IO
      • FileHelper
      • MimeTypeHelper
      • PathHelper
      • SequentialFileName
    • Configuration
      • Providers
        • JSON-file
        • XML-file
        • In-Memory
        • Consul
      • Get settings
      • Set settings
      • Customization
    • Email
      • Razor
    • Navigation
      • Menu
      • Breadcrumbs
    • Security
  • Domain
    • Domain
      • Entities
      • Value objects
  • Data Access
    • Entity Framework Core
    • Entity Framework 6
  • Use Cases
    • Operations
      • Filtering
      • Decoration
    • Notices
    • Validation
    • Specifications
    • Stateflows
      • StateMachine
      • Configurations
  • Presentation
    • ASP.NET Core
      • Client
      • Http
      • JavaScript
      • Json
      • Mvc
      • Referrer
      • Rewrite
      • Routing
      • TagHelpers
      • Validation
Powered by GitBook
On this page
  • HttpContext extensions
  • HttpRequest extensions
  • QueryCollection extensions

Was this helpful?

Edit on GitHub
  1. Presentation
  2. ASP.NET Core

Http

This part provides extension methods for http-related stuff such as HttpContext and HttpRequest.

HttpContext extensions

Method name
Return type
Description

GetIpAddress

string

Gets IP-address common human-readable representation for remote target.

GetAuthenticationSchemesAsync

Task<IEnumerable<AuthenticationScheme>>

Gets available authentication schemes.

IsSupportedAuthenticationSchemeAsync

Task<bool>

Determines whenever specified authentication scheme is available in current context.

HttpRequest extensions

Method name
Return type
Description

IsAjaxRequest

bool

Determines if request has ajax nature.

GetAbsoluteUri

string

Gets an absolute Uri of request, combined from scheme, host name, port, path and query.

QueryCollection extensions

Method name
Return type
Description

ToRouteValueDictionary

RouteValueDictionary

Creates an instance of RouteValueDictionary containing key-value pairs form specified IQueryCollection and appends new value with specified key.

PreviousClientNextJavaScript

Last updated 2 years ago

Was this helpful?