Skip to content

DAVRequest

export type DAVRequest = {
headers?: Record<string, string>;
method: DAVMethods | HTTPMethods;
body: any;
namespace?: string;
attributes?: Record<string, string>;
};

davRequest init object:

  • headers — request headers
  • method — DAVMethods or standard HTTP method
  • body — request body (ElementCompact object when convertIncoming is true, or raw BodyInit when false)
  • namespace — default XML namespace prefix for unprefixed keys
  • attributes — XML attributes added to root element(s)

headersToExclude, fetchOptions, and fetch are passed as top-level options on davRequest, not on DAVRequest.