MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / getLockTokenFromResponse

Function getLockTokenFromResponse

pages/dav_test.ts:57–60  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

55}
56
57function getLockTokenFromResponse(response: Response): string {
58 const lockTokenHeader = response.headers.get('lock-token') || '';
59 return lockTokenHeader.replace(/^<|>$/g, '');
60}
61
62Deno.test('that GET returns a file that exists', async () => {
63 const { user, userRootPath } = await setUpUser();

Callers 1

dav_test.tsFile · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected