Skip to content

RequestHelpers

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

Basically urlEqual, but without length constraint.

For example, https://www.example.com/ and www.example.com are considered contains.

Convert DAVNamespace to intended format to be consumed by xml-js to be used as xml attributes.

Clean up falsy values within an object, this is useful when sending headers,

Where undefined object property will cause an error.

Remove header value by its key value

useful when sending headers