-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Regarding the Future bullet you have in the README:
- Add support for Express and other frameworks
I'm looking to integrate CalDAV into a Meteor server, which uses the webapp framework. I believe webapp was the basis for Express and they're mostly compatible, but I'm not familiar with Koa.
Do you have a sense of how difficult it would be to port? I assume it's mostly src/koa.js
that needs to change. I've only taken a quick look, but it looks fairly straightforward. For example:
ctx.status = 401;
ctx.response.set('WWW-Authenticate', `Basic realm="${opts.authRealm}"`);
would probably change to
res.writeHead(401, {
'WWW-Authenticate': `Basic realm="${opts.authRealm}"`
});
bas080 and slaivyn
Metadata
Metadata
Assignees
Labels
No labels