Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { domain: null,
- _events:
- { error: [Function],
- complete: [Function],
- pipe: [Function],
- end: [ [Function], [Function] ],
- data: [Function] },
- _maxListeners: 10,
- uri:
- { protocol: 'https:',
- slashes: true,
- auth: null,
- host: 'staging.resin.io',
- port: 443,
- hostname: 'staging.resin.io',
- hash: null,
- search: null,
- query: null,
- pathname: '/ewa/application',
- path: '/ewa/application',
- href: 'https://staging.resin.io/ewa/application' },
- callback: [Function],
- resource: 'application',
- data: { app_name: 'HelloResin', device_type: 'raspberry-pi' },
- method: 'POST',
- gzip: true,
- headers:
- { Authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Imp2aW90dGkiLCJlbWFpbCI6Imp1YW5jaGl2aW90dGlAZ21haWwuY29tIiwiZ2l0bGFiX2lkIjoyMiwiaGFzUGFzc3dvcmRTZXQiOnRydWUsInB1YmxpY19rZXkiOnRydWUsImZlYXR1cmVzIjpbXSwiaWQiOjI0LCJwZXJtaXNzaW9ucyI6WyJld2EuZGV2aWNlLmdldCIsImFkbWluLmhvbWUiLCJhZG1pbi5sb2dpbl9hc191c2VyIiwiYWRtaW4uY3JlYXRlX2ludml0ZXMiXSwiaWF0IjoxNDE2NDk4ODk5fQ.o1qnm7M1AwdEFIxcUZBncc_9okJSvpu6GYqzurS9i-U',
- 'accept-encoding': 'gzip',
- accept: 'application/json',
- 'content-length': 0 },
- readable: true,
- writable: true,
- explicitMethod: true,
- canTunnel: false,
- setHeader: [Function],
- hasHeader: [Function],
- getHeader: [Function],
- removeHeader: [Function],
- localAddress: undefined,
- qsLib: { stringify: [Function], parse: [Function] },
- pool: {},
- dests: [],
- __isRequestRequest: true,
- _callback: [Function],
- proxy: null,
- tunnel: false,
- _redirectsFollowed: 0,
- maxRedirects: 10,
- allowRedirect: [Function],
- followRedirects: true,
- followAllRedirects: false,
- redirects: [],
- setHost: true,
- originalCookieHeader: undefined,
- _disableCookies: true,
- _jar: undefined,
- port: 443,
- host: 'staging.resin.io',
- path: '/ewa/application',
- _json: true,
- httpModule:
- { Server: { [Function: Server] super_: [Object] },
- createServer: [Function],
- globalAgent:
- { domain: null,
- _events: [Object],
- _maxListeners: 10,
- options: {},
- requests: {},
- sockets: {},
- maxSockets: 5,
- createConnection: [Function: createConnection] },
- Agent: { [Function: Agent] super_: [Object] },
- request: [Function],
- get: [Function] },
- agentClass:
- { [Function: Agent]
- super_: { [Function: Agent] super_: [Object], defaultMaxSockets: 5 } },
- agent:
- { domain: null,
- _events: { free: [Function] },
- _maxListeners: 10,
- options: {},
- requests: {},
- sockets: {},
- maxSockets: 5,
- createConnection: [Function: createConnection] },
- _started: true,
- href: 'https://staging.resin.io/ewa/application',
- req:
- { domain: null,
- _events:
- { socket: [Object],
- response: [Function],
- error: [Function],
- drain: [Function] },
- _maxListeners: 10,
- output: [],
- outputEncodings: [],
- writable: true,
- _last: false,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- useChunkedEncodingByDefault: true,
- sendDate: false,
- _headerSent: true,
- _header: 'POST /ewa/application HTTP/1.1\r\nAuthorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Imp2aW90dGkiLCJlbWFpbCI6Imp1YW5jaGl2aW90dGlAZ21haWwuY29tIiwiZ2l0bGFiX2lkIjoyMiwiaGFzUGFzc3dvcmRTZXQiOnRydWUsInB1YmxpY19rZXkiOnRydWUsImZlYXR1cmVzIjpbXSwiaWQiOjI0LCJwZXJtaXNzaW9ucyI6WyJld2EuZGV2aWNlLmdldCIsImFkbWluLmhvbWUiLCJhZG1pbi5sb2dpbl9hc191c2VyIiwiYWRtaW4uY3JlYXRlX2ludml0ZXMiXSwiaWF0IjoxNDE2NDk4ODk5fQ.o1qnm7M1AwdEFIxcUZBncc_9okJSvpu6GYqzurS9i-U\r\nhost: staging.resin.io\r\naccept-encoding: gzip\r\naccept: application/json\r\ncontent-length: 0\r\nConnection: keep-alive\r\n\r\n',
- _hasBody: true,
- _trailer: '',
- finished: true,
- _hangupClose: false,
- socket:
- { _readableState: [Object],
- readable: false,
- domain: null,
- _events: [Object],
- _maxListeners: 0,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: true,
- pair: [Object],
- _pending: null,
- _pendingEncoding: '',
- _pendingCallback: null,
- _doneFlag: false,
- _retryAfterPartial: false,
- _halfRead: false,
- _sslOutCb: null,
- _resumingSession: false,
- _reading: true,
- _destroyed: true,
- _ended: true,
- _finished: false,
- _opposite: [Object],
- _buffer: [Object],
- _handle: [Object],
- socket: [Object],
- encrypted: [Object],
- authorized: true,
- _controlReleased: true,
- parser: null,
- _httpMessage: [Circular],
- ondata: null,
- onend: null,
- npnProtocol: undefined },
- connection:
- { _readableState: [Object],
- readable: false,
- domain: null,
- _events: [Object],
- _maxListeners: 0,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: true,
- pair: [Object],
- _pending: null,
- _pendingEncoding: '',
- _pendingCallback: null,
- _doneFlag: false,
- _retryAfterPartial: false,
- _halfRead: false,
- _sslOutCb: null,
- _resumingSession: false,
- _reading: true,
- _destroyed: true,
- _ended: true,
- _finished: false,
- _opposite: [Object],
- _buffer: [Object],
- _handle: [Object],
- socket: [Object],
- encrypted: [Object],
- authorized: true,
- _controlReleased: true,
- parser: null,
- _httpMessage: [Circular],
- ondata: null,
- onend: null,
- npnProtocol: undefined },
- agent:
- { domain: null,
- _events: [Object],
- _maxListeners: 10,
- options: {},
- requests: {},
- sockets: {},
- maxSockets: 5,
- createConnection: [Function: createConnection] },
- socketPath: undefined,
- method: 'POST',
- path: '/ewa/application',
- _headers:
- { authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Imp2aW90dGkiLCJlbWFpbCI6Imp1YW5jaGl2aW90dGlAZ21haWwuY29tIiwiZ2l0bGFiX2lkIjoyMiwiaGFzUGFzc3dvcmRTZXQiOnRydWUsInB1YmxpY19rZXkiOnRydWUsImZlYXR1cmVzIjpbXSwiaWQiOjI0LCJwZXJtaXNzaW9ucyI6WyJld2EuZGV2aWNlLmdldCIsImFkbWluLmhvbWUiLCJhZG1pbi5sb2dpbl9hc191c2VyIiwiYWRtaW4uY3JlYXRlX2ludml0ZXMiXSwiaWF0IjoxNDE2NDk4ODk5fQ.o1qnm7M1AwdEFIxcUZBncc_9okJSvpu6GYqzurS9i-U',
- host: 'staging.resin.io',
- 'accept-encoding': 'gzip',
- accept: 'application/json',
- 'content-length': 0 },
- _headerNames:
- { authorization: 'Authorization',
- host: 'host',
- 'accept-encoding': 'accept-encoding',
- accept: 'accept',
- 'content-length': 'content-length' },
- parser: null,
- res:
- { _readableState: [Object],
- readable: false,
- domain: null,
- _events: [Object],
- _maxListeners: 10,
- socket: [Object],
- connection: [Object],
- httpVersion: '1.1',
- complete: true,
- headers: [Object],
- trailers: {},
- _pendings: [],
- _pendingIndex: 0,
- url: '',
- method: null,
- statusCode: 404,
- client: [Object],
- _consuming: true,
- _dumped: false,
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- upgrade: false,
- req: [Circular],
- pipe: [Function],
- addListener: [Function],
- on: [Function],
- pause: [Function],
- resume: [Function],
- read: [Function],
- request: [Circular],
- toJSON: [Function: responseToJSON],
- caseless: [Object],
- body: 'Unsupported device type' } },
- ntick: true,
- response:
- { _readableState:
- { highWaterMark: 16384,
- buffer: [],
- length: 0,
- pipes: null,
- pipesCount: 0,
- flowing: false,
- ended: true,
- endEmitted: true,
- reading: false,
- calledRead: true,
- sync: false,
- needReadable: true,
- emittedReadable: false,
- readableListening: false,
- objectMode: false,
- defaultEncoding: 'utf8',
- ranOut: false,
- awaitDrain: 0,
- readingMore: false,
- decoder: null,
- encoding: null },
- readable: false,
- domain: null,
- _events:
- { end: [Object],
- readable: [Function],
- close: [Object],
- data: [Function],
- error: [Function] },
- _maxListeners: 10,
- socket:
- { _readableState: [Object],
- readable: false,
- domain: null,
- _events: [Object],
- _maxListeners: 0,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: true,
- pair: [Object],
- _pending: null,
- _pendingEncoding: '',
- _pendingCallback: null,
- _doneFlag: false,
- _retryAfterPartial: false,
- _halfRead: false,
- _sslOutCb: null,
- _resumingSession: false,
- _reading: true,
- _destroyed: true,
- _ended: true,
- _finished: false,
- _opposite: [Object],
- _buffer: [Object],
- _handle: [Object],
- socket: [Object],
- encrypted: [Object],
- authorized: true,
- _controlReleased: true,
- parser: null,
- _httpMessage: [Object],
- ondata: null,
- onend: null,
- npnProtocol: undefined },
- connection:
- { _readableState: [Object],
- readable: false,
- domain: null,
- _events: [Object],
- _maxListeners: 0,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: true,
- pair: [Object],
- _pending: null,
- _pendingEncoding: '',
- _pendingCallback: null,
- _doneFlag: false,
- _retryAfterPartial: false,
- _halfRead: false,
- _sslOutCb: null,
- _resumingSession: false,
- _reading: true,
- _destroyed: true,
- _ended: true,
- _finished: false,
- _opposite: [Object],
- _buffer: [Object],
- _handle: [Object],
- socket: [Object],
- encrypted: [Object],
- authorized: true,
- _controlReleased: true,
- parser: null,
- _httpMessage: [Object],
- ondata: null,
- onend: null,
- npnProtocol: undefined },
- httpVersion: '1.1',
- complete: true,
- headers:
- { 'access-control-allow-credentials': 'true',
- 'access-control-allow-headers': 'Content-Type, Authorization, Application-Record-Count, MaxDataServiceVersion, X-Requested-With',
- 'access-control-allow-methods': 'GET, PUT, POST, PATCH, DELETE, OPTIONS, HEAD',
- 'access-control-allow-origin': '*',
- 'content-type': 'application/json; charset=utf-8',
- date: 'Mon, 24 Nov 2014 13:36:23 GMT',
- vary: 'Accept-Encoding',
- 'x-powered-by': 'Express',
- 'content-length': '25',
- connection: 'keep-alive' },
- trailers: {},
- _pendings: [],
- _pendingIndex: 0,
- url: '',
- method: null,
- statusCode: 404,
- client:
- { _readableState: [Object],
- readable: false,
- domain: null,
- _events: [Object],
- _maxListeners: 0,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: true,
- pair: [Object],
- _pending: null,
- _pendingEncoding: '',
- _pendingCallback: null,
- _doneFlag: false,
- _retryAfterPartial: false,
- _halfRead: false,
- _sslOutCb: null,
- _resumingSession: false,
- _reading: true,
- _destroyed: true,
- _ended: true,
- _finished: false,
- _opposite: [Object],
- _buffer: [Object],
- _handle: [Object],
- socket: [Object],
- encrypted: [Object],
- authorized: true,
- _controlReleased: true,
- parser: null,
- _httpMessage: [Object],
- ondata: null,
- onend: null,
- npnProtocol: undefined },
- _consuming: true,
- _dumped: false,
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- upgrade: false,
- req:
- { domain: null,
- _events: [Object],
- _maxListeners: 10,
- output: [],
- outputEncodings: [],
- writable: true,
- _last: false,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- useChunkedEncodingByDefault: true,
- sendDate: false,
- _headerSent: true,
- _header: 'POST /ewa/application HTTP/1.1\r\nAuthorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Imp2aW90dGkiLCJlbWFpbCI6Imp1YW5jaGl2aW90dGlAZ21haWwuY29tIiwiZ2l0bGFiX2lkIjoyMiwiaGFzUGFzc3dvcmRTZXQiOnRydWUsInB1YmxpY19rZXkiOnRydWUsImZlYXR1cmVzIjpbXSwiaWQiOjI0LCJwZXJtaXNzaW9ucyI6WyJld2EuZGV2aWNlLmdldCIsImFkbWluLmhvbWUiLCJhZG1pbi5sb2dpbl9hc191c2VyIiwiYWRtaW4uY3JlYXRlX2ludml0ZXMiXSwiaWF0IjoxNDE2NDk4ODk5fQ.o1qnm7M1AwdEFIxcUZBncc_9okJSvpu6GYqzurS9i-U\r\nhost: staging.resin.io\r\naccept-encoding: gzip\r\naccept: application/json\r\ncontent-length: 0\r\nConnection: keep-alive\r\n\r\n',
- _hasBody: true,
- _trailer: '',
- finished: true,
- _hangupClose: false,
- socket: [Object],
- connection: [Object],
- agent: [Object],
- socketPath: undefined,
- method: 'POST',
- path: '/ewa/application',
- _headers: [Object],
- _headerNames: [Object],
- parser: null,
- res: [Circular] },
- pipe: [Function],
- addListener: [Function],
- on: [Function],
- pause: [Function],
- resume: [Function],
- read: [Function],
- request: [Circular],
- toJSON: [Function: responseToJSON],
- caseless: { dict: [Object] },
- body: 'Unsupported device type' },
- originalHost: 'staging.resin.io',
- originalHostHeaderName: 'host',
- _destdata: true,
- _ended: true,
- _callbackCalled: true }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement