DAVResponse
export type DAVResponse = {
raw?: any;
href?: string;
status: number;
statusText: string;
ok: boolean;
error?: { [key: string]: any };
responsedescription?: string;
props?: { [key: string]: { status: number; statusText: string; ok: boolean; value: any } | any };
};
sample DAVResponse
{
"raw": {
"multistatus": {
"response": {
"href": "/",
"propstat": {
"prop": {
"currentUserPrincipal": { "href": "/123456/principal/" }
},
"status": "HTTP/1.1 200 OK"
}
}
}
},
"href": "/",
"status": 207,
"statusText": "Multi-Status",
"ok": true,
"props": { "currentUserPrincipal": { "href": "/123456/principal/" } }
}
response type of davRequest
raw
the entire response object, useful when need something that is not a prop or hrefhref
content element URIstatus
fetch response statusstatusText
fetch response statusTextok
fetch response okerror
error object from error responseresponsedescription
information about a status response within a Multi-Statusprops
response propstat props with camel case names.