|
|
@@ -64,15 +64,21 @@ const serverOptions: webdav.WebDAVServerOptions = { |
|
|
|
|
|
|
|
|
const server = new webdav.WebDAVServer(serverOptions); |
|
|
const server = new webdav.WebDAVServer(serverOptions); |
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
server.afterRequest((arg, next) => { |
|
|
|
|
|
// Display the method, the URI, the returned status code and the returned message |
|
|
|
|
|
console.log('>>', arg.request.method, arg.requested.uri, '>', arg.response.statusCode, arg.response.statusMessage); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server.afterRequest((_arg, next) => { |
|
|
|
|
|
// Display the method, the URI, the returned status code and the returned message |
|
|
|
|
|
/* |
|
|
|
|
|
console.log( |
|
|
|
|
|
'METHOD', _arg.request.method, |
|
|
|
|
|
'URI', _arg.requested.uri, |
|
|
|
|
|
'RESPONSE.StatusCode', _arg.response.statusCode, |
|
|
|
|
|
'RESPONSE.StatusCode', _arg.response.statusMessage); |
|
|
// If available, display the body of the response |
|
|
// If available, display the body of the response |
|
|
console.log(arg.responseBody); |
|
|
|
|
|
|
|
|
console.log('RESPONSEBODY', _arg.responseBody); |
|
|
|
|
|
*/ |
|
|
next(); |
|
|
next(); |
|
|
}); |
|
|
}); |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let nMount = 0; |
|
|
let nMount = 0; |
|
|
|