Skip to content

Digbyswift/Digbyswift.Http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digbyswift.Http

NuGet version (Digbyswift.Http) Build status

A library of useful classes and HTTP-based extensions.

Please note, as of v1.0.3 this package has been renamed from Digbyswift.Extensions.Http to Digbyswift.Http.

Uri

  • ToBaseUri()
  • ToBareUri()
  • ToBareUrl()
  • GetDomainInfo()

HttpRequest

ForwardedHttpRequest

  • AsForwarded()

Uri/Url

  • GetAbsoluteUri()
  • GetAbsoluteUrl()
  • GetAbsoluteBaseUri()
  • GetAbsoluteBaseUrl()

Referrer

  • HasReferrer()
  • GetReferrer()
  • GetRawReferrer()
  • GetSameHostReferrer(bool allowSubDomains = false)
  • GetSameHostReferrerOrDefault(bool allowSubDomains = false, string? defaultReferrer = null)
  • TryGetReferrer()
  • TryGetSameHostReferrer()

Properties

  • IsGetMethod()
  • IsHeadMethod()
  • IsPostMethod()
  • IsAjaxRequest()
  • GetClientIp()
  • GetUserAgent()
  • HasUserAgent(string? specificUserAgent = null)
  • GetDomainInfo()
  • AcceptsWebP

Paths

  • PathHasExtension()
  • IsPngOrJpeg()
  • IsSvg()
  • PathAndQueryReplaceKey(string replaceKey, object value)
  • PathAndQueryWithoutKey(string excludeKey)
  • PathAndQueryWithoutKeys(string[] excludeKeys)

HttpResponse

  • SetNoCacheHeaders()

HttpResponseMessage

  • IsStatusCodeSuitableForRetry()

HttpContent

  • ReadAsJsonAsync<T>(JsonSerializerSettings? options = null)

PathString

  • Segments()
  • SegmentAt(int index)
  • SegmentAtOrDefault(int index, string? defaultSegment = null)

HttpContext

  • IsAuthenticated()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages