RequestHelpers
RequestHelpers
Section titled “RequestHelpers”urlEquals
Section titled “urlEquals”Check if two urls are mostly equal
Will first trim out white spaces, and can omit the last /
For example, https://www.example.com/ and https://www.example.com are considered equal
urlContains
Section titled “urlContains”Basically urlEqual, but without length constraint.
For example, https://www.example.com/ and www.example.com are considered contains.
getDAVAttribute
Section titled “getDAVAttribute”Convert DAVNamespace to intended format to be consumed by xml-js to be used as xml attributes.
cleanupFalsy
Section titled “cleanupFalsy”Clean up falsy values within an object, this is useful when sending headers,
Where undefined object property will cause an error.
excludeHeaders
Section titled “excludeHeaders”Remove header value by its key value
useful when sending headers