Skip to content

Instantly share code, notes, and snippets.

@alexindigo
Created August 7, 2016 07:34
Show Gist options
  • Save alexindigo/9fa4aebf14cf1760a4be98f5420e3fb2 to your computer and use it in GitHub Desktop.
Save alexindigo/9fa4aebf14cf1760a4be98f5420e3fb2 to your computer and use it in GitHub Desktop.
# Express, no parser -> Express, parsed
request (IncomingMessage):
- complete: false,
+ complete: true,
+ body: [Object],
+ _body: true,
+ length: undefined,
+ read: [Object]
# http -> Express, no parser
request (IncomingMessage):
- url: '/webhook',
+ url: '/',
+ next: [Object],
+ baseUrl: '/webhook',
+ originalUrl: '/webhook',
+ _parsedUrl: [Object],
+ params: {},
+ query: {},
+ res: [Object]
# http -> Restify, no parser
request (IncomingMessage):
+ log: [Object],
+ _time: 1470550454360,
+ serverName: 'restify',
+ _version: '*',
+ _url: [Object],
+ _cacheURL: '/webhook',
+ params: {},
+ context: {},
+ route: [Object],
+ _dtraceId: 1,
+ _anonFuncCount: 0,
+ _currentRoute: 'postwebhook',
+ _currentHandler: 'bound ',
+ _timerMap: [Object]
# Restify, no parser -> Restify, parsed
request (IncomingMessage):
- _events: {},
- _eventsCount: 0,
+ _events: [Object],
+ _eventsCount: 2,
- complete: false,
+ complete: true,
+ _clen: 271,
+ _contentType: 'application/json',
+ body: [Object],
+ read: [Object],
+ timers: [Object]
# http -> Hapi
request:
- (IncomingMessage)
+ (EventEmitter)
+ request.server.info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment