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.
ToBaseUri()
ToBareUri()
ToBareUrl()
GetDomainInfo()
AsForwarded()
GetAbsoluteUri()
GetAbsoluteUrl()
GetAbsoluteBaseUri()
GetAbsoluteBaseUrl()
HasReferrer()
GetReferrer()
GetRawReferrer()
GetSameHostReferrer(bool allowSubDomains = false)
GetSameHostReferrerOrDefault(bool allowSubDomains = false, string? defaultReferrer = null)
TryGetReferrer()
TryGetSameHostReferrer()
IsGetMethod()
IsHeadMethod()
IsPostMethod()
IsAjaxRequest()
GetClientIp()
GetUserAgent()
HasUserAgent(string? specificUserAgent = null)
GetDomainInfo()
AcceptsWebP
PathHasExtension()
IsPngOrJpeg()
IsSvg()
PathAndQueryReplaceKey(string replaceKey, object value)
PathAndQueryWithoutKey(string excludeKey)
PathAndQueryWithoutKeys(string[] excludeKeys)
SetNoCacheHeaders()
IsStatusCodeSuitableForRetry()
ReadAsJsonAsync<T>(JsonSerializerSettings? options = null)
Segments()
SegmentAt(int index)
SegmentAtOrDefault(int index, string? defaultSegment = null)
IsAuthenticated()