Created
May 11, 2016 18:17
-
-
Save firminochangani/708fd1d1896fc99c63172368d232a612 to your computer and use it in GitHub Desktop.
The raw response from a GET request on OpenWeatherMap Public API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IncomingMessage { | |
| _readableState: | |
| ReadableState { | |
| objectMode: false, | |
| highWaterMark: 16384, | |
| buffer: [], | |
| length: 0, | |
| pipes: null, | |
| pipesCount: 0, | |
| flowing: null, | |
| ended: false, | |
| endEmitted: false, | |
| reading: false, | |
| sync: true, | |
| needReadable: false, | |
| emittedReadable: false, | |
| readableListening: false, | |
| defaultEncoding: 'utf8', | |
| ranOut: false, | |
| awaitDrain: 0, | |
| readingMore: false, | |
| decoder: null, | |
| encoding: null }, | |
| readable: true, | |
| domain: null, | |
| _events: { end: [Function: responseOnEnd] }, | |
| _eventsCount: 1, | |
| _maxListeners: undefined, | |
| socket: | |
| Socket { | |
| _connecting: false, | |
| _hadError: false, | |
| _handle: | |
| TCP { | |
| _externalStream: {}, | |
| fd: 10, | |
| reading: true, | |
| owner: [Circular], | |
| onread: [Function: onread], | |
| onconnection: null, | |
| writeQueueSize: 0 }, | |
| _parent: null, | |
| _host: 'api.openweathermap.org', | |
| _readableState: | |
| ReadableState { | |
| objectMode: false, | |
| highWaterMark: 16384, | |
| buffer: [], | |
| length: 0, | |
| pipes: null, | |
| pipesCount: 0, | |
| flowing: true, | |
| ended: false, | |
| endEmitted: false, | |
| reading: false, | |
| sync: false, | |
| needReadable: true, | |
| emittedReadable: false, | |
| readableListening: false, | |
| defaultEncoding: 'utf8', | |
| ranOut: false, | |
| awaitDrain: 0, | |
| readingMore: false, | |
| decoder: null, | |
| encoding: null, | |
| resumeScheduled: false }, | |
| readable: true, | |
| domain: null, | |
| _events: | |
| { end: [Object], | |
| finish: [Function: onSocketFinish], | |
| _socketEnd: [Function: onSocketEnd], | |
| free: [Function: onFree], | |
| close: [Object], | |
| agentRemove: [Function: onRemove], | |
| drain: [Function: ondrain], | |
| error: [Function: socketErrorListener], | |
| data: [Function: socketOnData] }, | |
| _eventsCount: 9, | |
| _maxListeners: undefined, | |
| _writableState: | |
| WritableState { | |
| objectMode: false, | |
| highWaterMark: 16384, | |
| needDrain: false, | |
| ending: false, | |
| ended: false, | |
| finished: false, | |
| decodeStrings: false, | |
| defaultEncoding: 'utf8', | |
| length: 0, | |
| writing: false, | |
| corked: 0, | |
| sync: false, | |
| bufferProcessing: false, | |
| onwrite: [Function], | |
| writecb: null, | |
| writelen: 0, | |
| bufferedRequest: null, | |
| lastBufferedRequest: null, | |
| pendingcb: 0, | |
| prefinished: false, | |
| errorEmitted: false }, | |
| writable: true, | |
| allowHalfOpen: false, | |
| destroyed: false, | |
| bytesRead: 267, | |
| _bytesDispatched: 133, | |
| _sockname: null, | |
| _pendingData: null, | |
| _pendingEncoding: '', | |
| parser: | |
| HTTPParser { | |
| '0': [Function: parserOnHeaders], | |
| '1': [Function: parserOnHeadersComplete], | |
| '2': [Function: parserOnBody], | |
| '3': [Function: parserOnMessageComplete], | |
| _headers: [], | |
| _url: '', | |
| _consumed: false, | |
| socket: [Circular], | |
| incoming: [Circular], | |
| maxHeaderPairs: 2000, | |
| onIncoming: [Function: parserOnIncomingClient] }, | |
| _httpMessage: | |
| ClientRequest { | |
| domain: null, | |
| _events: {}, | |
| _eventsCount: 0, | |
| _maxListeners: undefined, | |
| output: [], | |
| outputEncodings: [], | |
| outputCallbacks: [], | |
| outputSize: 0, | |
| writable: true, | |
| _last: true, | |
| chunkedEncoding: false, | |
| shouldKeepAlive: false, | |
| useChunkedEncodingByDefault: false, | |
| sendDate: false, | |
| _removedHeader: {}, | |
| _contentLength: 0, | |
| _hasBody: true, | |
| _trailer: '', | |
| finished: true, | |
| _headerSent: true, | |
| socket: [Circular], | |
| connection: [Circular], | |
| _header: 'GET /data/2.5/weather?q=Benguela&APPID=63193c0cc45c99f031a929e0e3b6b6d5 HTTP/1.1\r\nHost: api.openweathermap.org\r\nConnection: close\r\n\r\n', | |
| _headers: [Object], | |
| _headerNames: [Object], | |
| _onPendingData: null, | |
| agent: [Object], | |
| socketPath: undefined, | |
| method: 'GET', | |
| path: '/data/2.5/weather?q=Benguela&APPID=63193c0cc45c99f031a929e0e3b6b6d5', | |
| parser: [Object], | |
| res: [Circular] }, | |
| read: [Function], | |
| _consuming: true }, | |
| connection: | |
| Socket { | |
| _connecting: false, | |
| _hadError: false, | |
| _handle: | |
| TCP { | |
| _externalStream: {}, | |
| fd: 10, | |
| reading: true, | |
| owner: [Circular], | |
| onread: [Function: onread], | |
| onconnection: null, | |
| writeQueueSize: 0 }, | |
| _parent: null, | |
| _host: 'api.openweathermap.org', | |
| _readableState: | |
| ReadableState { | |
| objectMode: false, | |
| highWaterMark: 16384, | |
| buffer: [], | |
| length: 0, | |
| pipes: null, | |
| pipesCount: 0, | |
| flowing: true, | |
| ended: false, | |
| endEmitted: false, | |
| reading: false, | |
| sync: false, | |
| needReadable: true, | |
| emittedReadable: false, | |
| readableListening: false, | |
| defaultEncoding: 'utf8', | |
| ranOut: false, | |
| awaitDrain: 0, | |
| readingMore: false, | |
| decoder: null, | |
| encoding: null, | |
| resumeScheduled: false }, | |
| readable: true, | |
| domain: null, | |
| _events: | |
| { end: [Object], | |
| finish: [Function: onSocketFinish], | |
| _socketEnd: [Function: onSocketEnd], | |
| free: [Function: onFree], | |
| close: [Object], | |
| agentRemove: [Function: onRemove], | |
| drain: [Function: ondrain], | |
| error: [Function: socketErrorListener], | |
| data: [Function: socketOnData] }, | |
| _eventsCount: 9, | |
| _maxListeners: undefined, | |
| _writableState: | |
| WritableState { | |
| objectMode: false, | |
| highWaterMark: 16384, | |
| needDrain: false, | |
| ending: false, | |
| ended: false, | |
| finished: false, | |
| decodeStrings: false, | |
| defaultEncoding: 'utf8', | |
| length: 0, | |
| writing: false, | |
| corked: 0, | |
| sync: false, | |
| bufferProcessing: false, | |
| onwrite: [Function], | |
| writecb: null, | |
| writelen: 0, | |
| bufferedRequest: null, | |
| lastBufferedRequest: null, | |
| pendingcb: 0, | |
| prefinished: false, | |
| errorEmitted: false }, | |
| writable: true, | |
| allowHalfOpen: false, | |
| destroyed: false, | |
| bytesRead: 267, | |
| _bytesDispatched: 133, | |
| _sockname: null, | |
| _pendingData: null, | |
| _pendingEncoding: '', | |
| parser: | |
| HTTPParser { | |
| '0': [Function: parserOnHeaders], | |
| '1': [Function: parserOnHeadersComplete], | |
| '2': [Function: parserOnBody], | |
| '3': [Function: parserOnMessageComplete], | |
| _headers: [], | |
| _url: '', | |
| _consumed: false, | |
| socket: [Circular], | |
| incoming: [Circular], | |
| maxHeaderPairs: 2000, | |
| onIncoming: [Function: parserOnIncomingClient] }, | |
| _httpMessage: | |
| ClientRequest { | |
| domain: null, | |
| _events: {}, | |
| _eventsCount: 0, | |
| _maxListeners: undefined, | |
| output: [], | |
| outputEncodings: [], | |
| outputCallbacks: [], | |
| outputSize: 0, | |
| writable: true, | |
| _last: true, | |
| chunkedEncoding: false, | |
| shouldKeepAlive: false, | |
| useChunkedEncodingByDefault: false, | |
| sendDate: false, | |
| _removedHeader: {}, | |
| _contentLength: 0, | |
| _hasBody: true, | |
| _trailer: '', | |
| finished: true, | |
| _headerSent: true, | |
| socket: [Circular], | |
| connection: [Circular], | |
| _header: 'GET /data/2.5/weather?q=Benguela&APPID=63193c0cc45c99f031a929e0e3b6b6d5 HTTP/1.1\r\nHost: api.openweathermap.org\r\nConnection: close\r\n\r\n', | |
| _headers: [Object], | |
| _headerNames: [Object], | |
| _onPendingData: null, | |
| agent: [Object], | |
| socketPath: undefined, | |
| method: 'GET', | |
| path: '/data/2.5/weather?q=Benguela&APPID=63193c0cc45c99f031a929e0e3b6b6d5', | |
| parser: [Object], | |
| res: [Circular] }, | |
| read: [Function], | |
| _consuming: true }, | |
| httpVersionMajor: 1, | |
| httpVersionMinor: 0, | |
| httpVersion: '1.0', | |
| complete: false, | |
| headers: | |
| { server: 'nginx', | |
| date: 'Wed, 11 May 2016 18:15:00 GMT', | |
| 'content-type': 'application/json; charset=utf-8', | |
| 'x-source': 'redis', | |
| 'access-control-allow-origin': '*', | |
| 'access-control-allow-credentials': 'true', | |
| 'access-control-allow-methods': 'GET, POST', | |
| connection: 'close' }, | |
| rawHeaders: | |
| [ 'Server', | |
| 'nginx', | |
| 'Date', | |
| 'Wed, 11 May 2016 18:15:00 GMT', | |
| 'Content-Type', | |
| 'application/json; charset=utf-8', | |
| 'X-Source', | |
| 'redis', | |
| 'Access-Control-Allow-Origin', | |
| '*', | |
| 'Access-Control-Allow-Credentials', | |
| 'true', | |
| 'Access-Control-Allow-Methods', | |
| 'GET, POST', | |
| 'Connection', | |
| 'close' ], | |
| trailers: {}, | |
| rawTrailers: [], | |
| upgrade: false, | |
| url: '', | |
| method: null, | |
| statusCode: 200, | |
| statusMessage: 'OK', | |
| client: | |
| Socket { | |
| _connecting: false, | |
| _hadError: false, | |
| _handle: | |
| TCP { | |
| _externalStream: {}, | |
| fd: 10, | |
| reading: true, | |
| owner: [Circular], | |
| onread: [Function: onread], | |
| onconnection: null, | |
| writeQueueSize: 0 }, | |
| _parent: null, | |
| _host: 'api.openweathermap.org', | |
| _readableState: | |
| ReadableState { | |
| objectMode: false, | |
| highWaterMark: 16384, | |
| buffer: [], | |
| length: 0, | |
| pipes: null, | |
| pipesCount: 0, | |
| flowing: true, | |
| ended: false, | |
| endEmitted: false, | |
| reading: false, | |
| sync: false, | |
| needReadable: true, | |
| emittedReadable: false, | |
| readableListening: false, | |
| defaultEncoding: 'utf8', | |
| ranOut: false, | |
| awaitDrain: 0, | |
| readingMore: false, | |
| decoder: null, | |
| encoding: null, | |
| resumeScheduled: false }, | |
| readable: true, | |
| domain: null, | |
| _events: | |
| { end: [Object], | |
| finish: [Function: onSocketFinish], | |
| _socketEnd: [Function: onSocketEnd], | |
| free: [Function: onFree], | |
| close: [Object], | |
| agentRemove: [Function: onRemove], | |
| drain: [Function: ondrain], | |
| error: [Function: socketErrorListener], | |
| data: [Function: socketOnData] }, | |
| _eventsCount: 9, | |
| _maxListeners: undefined, | |
| _writableState: | |
| WritableState { | |
| objectMode: false, | |
| highWaterMark: 16384, | |
| needDrain: false, | |
| ending: false, | |
| ended: false, | |
| finished: false, | |
| decodeStrings: false, | |
| defaultEncoding: 'utf8', | |
| length: 0, | |
| writing: false, | |
| corked: 0, | |
| sync: false, | |
| bufferProcessing: false, | |
| onwrite: [Function], | |
| writecb: null, | |
| writelen: 0, | |
| bufferedRequest: null, | |
| lastBufferedRequest: null, | |
| pendingcb: 0, | |
| prefinished: false, | |
| errorEmitted: false }, | |
| writable: true, | |
| allowHalfOpen: false, | |
| destroyed: false, | |
| bytesRead: 267, | |
| _bytesDispatched: 133, | |
| _sockname: null, | |
| _pendingData: null, | |
| _pendingEncoding: '', | |
| parser: | |
| HTTPParser { | |
| '0': [Function: parserOnHeaders], | |
| '1': [Function: parserOnHeadersComplete], | |
| '2': [Function: parserOnBody], | |
| '3': [Function: parserOnMessageComplete], | |
| _headers: [], | |
| _url: '', | |
| _consumed: false, | |
| socket: [Circular], | |
| incoming: [Circular], | |
| maxHeaderPairs: 2000, | |
| onIncoming: [Function: parserOnIncomingClient] }, | |
| _httpMessage: | |
| ClientRequest { | |
| domain: null, | |
| _events: {}, | |
| _eventsCount: 0, | |
| _maxListeners: undefined, | |
| output: [], | |
| outputEncodings: [], | |
| outputCallbacks: [], | |
| outputSize: 0, | |
| writable: true, | |
| _last: true, | |
| chunkedEncoding: false, | |
| shouldKeepAlive: false, | |
| useChunkedEncodingByDefault: false, | |
| sendDate: false, | |
| _removedHeader: {}, | |
| _contentLength: 0, | |
| _hasBody: true, | |
| _trailer: '', | |
| finished: true, | |
| _headerSent: true, | |
| socket: [Circular], | |
| connection: [Circular], | |
| _header: 'GET /data/2.5/weather?q=Benguela&APPID=63193c0cc45c99f031a929e0e3b6b6d5 HTTP/1.1\r\nHost: api.openweathermap.org\r\nConnection: close\r\n\r\n', | |
| _headers: [Object], | |
| _headerNames: [Object], | |
| _onPendingData: null, | |
| agent: [Object], | |
| socketPath: undefined, | |
| method: 'GET', | |
| path: '/data/2.5/weather?q=Benguela&APPID=63193c0cc45c99f031a929e0e3b6b6d5', | |
| parser: [Object], | |
| res: [Circular] }, | |
| read: [Function], | |
| _consuming: true }, | |
| _consuming: false, | |
| _dumped: false, | |
| req: | |
| ClientRequest { | |
| domain: null, | |
| _events: {}, | |
| _eventsCount: 0, | |
| _maxListeners: undefined, | |
| output: [], | |
| outputEncodings: [], | |
| outputCallbacks: [], | |
| outputSize: 0, | |
| writable: true, | |
| _last: true, | |
| chunkedEncoding: false, | |
| shouldKeepAlive: false, | |
| useChunkedEncodingByDefault: false, | |
| sendDate: false, | |
| _removedHeader: {}, | |
| _contentLength: 0, | |
| _hasBody: true, | |
| _trailer: '', | |
| finished: true, | |
| _headerSent: true, | |
| socket: | |
| Socket { | |
| _connecting: false, | |
| _hadError: false, | |
| _handle: [Object], | |
| _parent: null, | |
| _host: 'api.openweathermap.org', | |
| _readableState: [Object], | |
| readable: true, | |
| domain: null, | |
| _events: [Object], | |
| _eventsCount: 9, | |
| _maxListeners: undefined, | |
| _writableState: [Object], | |
| writable: true, | |
| allowHalfOpen: false, | |
| destroyed: false, | |
| bytesRead: 267, | |
| _bytesDispatched: 133, | |
| _sockname: null, | |
| _pendingData: null, | |
| _pendingEncoding: '', | |
| parser: [Object], | |
| _httpMessage: [Circular], | |
| read: [Function], | |
| _consuming: true }, | |
| connection: | |
| Socket { | |
| _connecting: false, | |
| _hadError: false, | |
| _handle: [Object], | |
| _parent: null, | |
| _host: 'api.openweathermap.org', | |
| _readableState: [Object], | |
| readable: true, | |
| domain: null, | |
| _events: [Object], | |
| _eventsCount: 9, | |
| _maxListeners: undefined, | |
| _writableState: [Object], | |
| writable: true, | |
| allowHalfOpen: false, | |
| destroyed: false, | |
| bytesRead: 267, | |
| _bytesDispatched: 133, | |
| _sockname: null, | |
| _pendingData: null, | |
| _pendingEncoding: '', | |
| parser: [Object], | |
| _httpMessage: [Circular], | |
| read: [Function], | |
| _consuming: true }, | |
| _header: 'GET /data/2.5/weather?q=Benguela&APPID=63193c0cc45c99f031a929e0e3b6b6d5 HTTP/1.1\r\nHost: api.openweathermap.org\r\nConnection: close\r\n\r\n', | |
| _headers: { host: 'api.openweathermap.org' }, | |
| _headerNames: { host: 'Host' }, | |
| _onPendingData: null, | |
| agent: | |
| Agent { | |
| domain: null, | |
| _events: [Object], | |
| _eventsCount: 1, | |
| _maxListeners: undefined, | |
| defaultPort: 80, | |
| protocol: 'http:', | |
| options: [Object], | |
| requests: {}, | |
| sockets: [Object], | |
| freeSockets: {}, | |
| keepAliveMsecs: 1000, | |
| keepAlive: false, | |
| maxSockets: Infinity, | |
| maxFreeSockets: 256 }, | |
| socketPath: undefined, | |
| method: 'GET', | |
| path: '/data/2.5/weather?q=Benguela&APPID=63193c0cc45c99f031a929e0e3b6b6d5', | |
| parser: | |
| HTTPParser { | |
| '0': [Function: parserOnHeaders], | |
| '1': [Function: parserOnHeadersComplete], | |
| '2': [Function: parserOnBody], | |
| '3': [Function: parserOnMessageComplete], | |
| _headers: [], | |
| _url: '', | |
| _consumed: false, | |
| socket: [Object], | |
| incoming: [Circular], | |
| maxHeaderPairs: 2000, | |
| onIncoming: [Function: parserOnIncomingClient] }, | |
| res: [Circular] } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment