fix minor log entry issue
[websub-hub] / src / enum.js
1 'use strict';
2
3 const common = require('./common');
4 const { Enum: DingusEnum } = require('@squeep/api-dingus');
5
6 const Enum = common.mergeDeep(DingusEnum, {
7 Specification: 'W3C.REC-websub-20180123',
8
9 Mode: {
10 Denied: 'denied',
11 Publish: 'publish',
12 Subscribe: 'subscribe',
13 Unsubscribe: 'unsubscribe',
14 },
15
16 Header: {
17 Authorization: 'Authorization',
18 From: 'From',
19 LastSeen: 'Last-Seen',
20 Link: 'Link',
21 Location: 'Location',
22 Signature: 'Signature',
23 UserAgent: 'User-Agent',
24 WWWAuthenticate: 'WWW-Authenticate',
25 XHubSignature: 'X-Hub-Signature',
26 },
27
28 ContentType: {
29 ApplicationAtom: 'application/atom+xml',
30 ApplicationOctetStream: 'application/octet-stream',
31 ApplicationRDF: 'application/rdf+xml',
32 ApplicationRSS: 'application/rss+xml',
33 ApplicationXML: 'application/xml',
34 ImageSVG: 'image/svg+xml',
35 TextXML: 'text/xml',
36 },
37 });
38
39 module.exports = common.freezeDeep(Enum);