Created
September 17, 2015 16:10
-
-
Save aweary/aac594b907e12a91c285 to your computer and use it in GitHub Desktop.
Readable Stream in raw-body
This file contains 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
ReadableState { | |
objectMode: false, | |
highWaterMark: 16384, | |
buffer: [], | |
length: 0, | |
pipes: null, | |
pipesCount: 0, | |
flowing: true, | |
ended: true, | |
endEmitted: true, | |
reading: false, | |
sync: true, | |
needReadable: false, | |
emittedReadable: false, | |
readableListening: false, | |
defaultEncoding: 'utf8', | |
ranOut: false, | |
awaitDrain: 0, | |
readingMore: false, | |
decoder: null, | |
encoding: null, | |
resumeScheduled: false } | |
trying to decode... | |
Buffer was totally assigned | |
Stream is... IncomingMessage { | |
_readableState: | |
ReadableState { | |
objectMode: false, | |
highWaterMark: 16384, | |
buffer: [], | |
length: 0, | |
pipes: null, | |
pipesCount: 0, | |
flowing: true, | |
ended: true, | |
endEmitted: true, | |
reading: false, | |
sync: true, | |
needReadable: false, | |
emittedReadable: false, | |
readableListening: false, | |
defaultEncoding: 'utf8', | |
ranOut: false, | |
awaitDrain: 0, | |
readingMore: false, | |
decoder: null, | |
encoding: null, | |
resumeScheduled: false }, | |
readable: false, | |
domain: null, | |
_events: {}, | |
_eventsCount: 0, | |
_maxListeners: undefined, | |
socket: | |
Socket { | |
_connecting: false, | |
_hadError: false, | |
_handle: | |
TCP { | |
_externalStream: {}, | |
fd: 18, | |
reading: true, | |
owner: [Circular], | |
onread: [Function: onread], | |
onconnection: null, | |
writeQueueSize: 0 }, | |
_parent: null, | |
_host: null, | |
_readableState: | |
ReadableState { | |
objectMode: false, | |
highWaterMark: 16384, | |
buffer: [], | |
length: 0, | |
pipes: null, | |
pipesCount: 0, | |
flowing: true, | |
ended: false, | |
endEmitted: false, | |
reading: true, | |
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], | |
drain: [Object], | |
timeout: [Function], | |
error: [Function: socketOnError], | |
close: [Object], | |
data: [Function: socketOnData], | |
resume: [Function: onSocketResume], | |
pause: [Function: onSocketPause] }, | |
_eventsCount: 10, | |
_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: true, | |
bufferProcessing: false, | |
onwrite: [Function], | |
writecb: null, | |
writelen: 0, | |
bufferedRequest: null, | |
lastBufferedRequest: null, | |
pendingcb: 0, | |
prefinished: false, | |
errorEmitted: false }, | |
writable: true, | |
allowHalfOpen: true, | |
destroyed: false, | |
bytesRead: 0, | |
_bytesDispatched: 0, | |
_sockname: null, | |
_pendingData: null, | |
_pendingEncoding: '', | |
server: | |
Server { | |
domain: null, | |
_events: [Object], | |
_eventsCount: 3, | |
_maxListeners: undefined, | |
_connections: 1, | |
_handle: [Object], | |
_usingSlaves: false, | |
_slaves: [], | |
_unref: false, | |
allowHalfOpen: true, | |
pauseOnConnect: false, | |
httpAllowHalfOpen: false, | |
timeout: 120000, | |
_connectionKey: '6::::3000' }, | |
_idleTimeout: 120000, | |
_idleNext: { _idleNext: [Circular], _idlePrev: [Circular] }, | |
_idlePrev: { _idleNext: [Circular], _idlePrev: [Circular] }, | |
_idleStart: 106769, | |
parser: | |
HTTPParser { | |
'0': [Function: parserOnHeaders], | |
'1': [Function: parserOnHeadersComplete], | |
'2': [Function: parserOnBody], | |
'3': [Function: parserOnMessageComplete], | |
'4': [Function: onParserExecute], | |
_headers: [], | |
_url: '', | |
socket: [Circular], | |
incoming: [Circular], | |
maxHeaderPairs: 2000, | |
onIncoming: [Function: parserOnIncoming] }, | |
on: [Function: socketOnWrap], | |
_paused: false, | |
read: [Function], | |
_consuming: true, | |
_httpMessage: | |
ServerResponse { | |
domain: null, | |
_events: [Object], | |
_eventsCount: 1, | |
_maxListeners: undefined, | |
output: [], | |
outputEncodings: [], | |
outputCallbacks: [], | |
writable: true, | |
_last: false, | |
chunkedEncoding: false, | |
shouldKeepAlive: true, | |
useChunkedEncodingByDefault: true, | |
sendDate: true, | |
_removedHeader: {}, | |
_contentLength: null, | |
_hasBody: true, | |
_trailer: '', | |
finished: false, | |
_headerSent: false, | |
socket: [Circular], | |
connection: [Circular], | |
_header: null, | |
_headers: [Object], | |
_headerNames: [Object], | |
req: [Circular], | |
locals: {} } }, | |
connection: | |
Socket { | |
_connecting: false, | |
_hadError: false, | |
_handle: | |
TCP { | |
_externalStream: {}, | |
fd: 18, | |
reading: true, | |
owner: [Circular], | |
onread: [Function: onread], | |
onconnection: null, | |
writeQueueSize: 0 }, | |
_parent: null, | |
_host: null, | |
_readableState: | |
ReadableState { | |
objectMode: false, | |
highWaterMark: 16384, | |
buffer: [], | |
length: 0, | |
pipes: null, | |
pipesCount: 0, | |
flowing: true, | |
ended: false, | |
endEmitted: false, | |
reading: true, | |
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], | |
drain: [Object], | |
timeout: [Function], | |
error: [Function: socketOnError], | |
close: [Object], | |
data: [Function: socketOnData], | |
resume: [Function: onSocketResume], | |
pause: [Function: onSocketPause] }, | |
_eventsCount: 10, | |
_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: true, | |
bufferProcessing: false, | |
onwrite: [Function], | |
writecb: null, | |
writelen: 0, | |
bufferedRequest: null, | |
lastBufferedRequest: null, | |
pendingcb: 0, | |
prefinished: false, | |
errorEmitted: false }, | |
writable: true, | |
allowHalfOpen: true, | |
destroyed: false, | |
bytesRead: 0, | |
_bytesDispatched: 0, | |
_sockname: null, | |
_pendingData: null, | |
_pendingEncoding: '', | |
server: | |
Server { | |
domain: null, | |
_events: [Object], | |
_eventsCount: 3, | |
_maxListeners: undefined, | |
_connections: 1, | |
_handle: [Object], | |
_usingSlaves: false, | |
_slaves: [], | |
_unref: false, | |
allowHalfOpen: true, | |
pauseOnConnect: false, | |
httpAllowHalfOpen: false, | |
timeout: 120000, | |
_connectionKey: '6::::3000' }, | |
_idleTimeout: 120000, | |
_idleNext: { _idleNext: [Circular], _idlePrev: [Circular] }, | |
_idlePrev: { _idleNext: [Circular], _idlePrev: [Circular] }, | |
_idleStart: 106769, | |
parser: | |
HTTPParser { | |
'0': [Function: parserOnHeaders], | |
'1': [Function: parserOnHeadersComplete], | |
'2': [Function: parserOnBody], | |
'3': [Function: parserOnMessageComplete], | |
'4': [Function: onParserExecute], | |
_headers: [], | |
_url: '', | |
socket: [Circular], | |
incoming: [Circular], | |
maxHeaderPairs: 2000, | |
onIncoming: [Function: parserOnIncoming] }, | |
on: [Function: socketOnWrap], | |
_paused: false, | |
read: [Function], | |
_consuming: true, | |
_httpMessage: | |
ServerResponse { | |
domain: null, | |
_events: [Object], | |
_eventsCount: 1, | |
_maxListeners: undefined, | |
output: [], | |
outputEncodings: [], | |
outputCallbacks: [], | |
writable: true, | |
_last: false, | |
chunkedEncoding: false, | |
shouldKeepAlive: true, | |
useChunkedEncodingByDefault: true, | |
sendDate: true, | |
_removedHeader: {}, | |
_contentLength: null, | |
_hasBody: true, | |
_trailer: '', | |
finished: false, | |
_headerSent: false, | |
socket: [Circular], | |
connection: [Circular], | |
_header: null, | |
_headers: [Object], | |
_headerNames: [Object], | |
req: [Circular], | |
locals: {} } }, | |
httpVersionMajor: 1, | |
httpVersionMinor: 1, | |
httpVersion: '1.1', | |
complete: true, | |
headers: | |
{ 'user-agent': 'curl/7.37.1', | |
host: 'localhost:3000', | |
accept: '*/*', | |
'content-type': 'application/graphql', | |
'content-length': '18' }, | |
rawHeaders: | |
[ 'User-Agent', | |
'curl/7.37.1', | |
'Host', | |
'localhost:3000', | |
'Accept', | |
'*/*', | |
'Content-Type', | |
'application/graphql', | |
'Content-Length', | |
'18' ], | |
trailers: {}, | |
rawTrailers: [], | |
upgrade: false, | |
url: '/', | |
method: 'POST', | |
statusCode: null, | |
statusMessage: null, | |
client: | |
Socket { | |
_connecting: false, | |
_hadError: false, | |
_handle: | |
TCP { | |
_externalStream: {}, | |
fd: 18, | |
reading: true, | |
owner: [Circular], | |
onread: [Function: onread], | |
onconnection: null, | |
writeQueueSize: 0 }, | |
_parent: null, | |
_host: null, | |
_readableState: | |
ReadableState { | |
objectMode: false, | |
highWaterMark: 16384, | |
buffer: [], | |
length: 0, | |
pipes: null, | |
pipesCount: 0, | |
flowing: true, | |
ended: false, | |
endEmitted: false, | |
reading: true, | |
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], | |
drain: [Object], | |
timeout: [Function], | |
error: [Function: socketOnError], | |
close: [Object], | |
data: [Function: socketOnData], | |
resume: [Function: onSocketResume], | |
pause: [Function: onSocketPause] }, | |
_eventsCount: 10, | |
_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: true, | |
bufferProcessing: false, | |
onwrite: [Function], | |
writecb: null, | |
writelen: 0, | |
bufferedRequest: null, | |
lastBufferedRequest: null, | |
pendingcb: 0, | |
prefinished: false, | |
errorEmitted: false }, | |
writable: true, | |
allowHalfOpen: true, | |
destroyed: false, | |
bytesRead: 0, | |
_bytesDispatched: 0, | |
_sockname: null, | |
_pendingData: null, | |
_pendingEncoding: '', | |
server: | |
Server { | |
domain: null, | |
_events: [Object], | |
_eventsCount: 3, | |
_maxListeners: undefined, | |
_connections: 1, | |
_handle: [Object], | |
_usingSlaves: false, | |
_slaves: [], | |
_unref: false, | |
allowHalfOpen: true, | |
pauseOnConnect: false, | |
httpAllowHalfOpen: false, | |
timeout: 120000, | |
_connectionKey: '6::::3000' }, | |
_idleTimeout: 120000, | |
_idleNext: { _idleNext: [Circular], _idlePrev: [Circular] }, | |
_idlePrev: { _idleNext: [Circular], _idlePrev: [Circular] }, | |
_idleStart: 106769, | |
parser: | |
HTTPParser { | |
'0': [Function: parserOnHeaders], | |
'1': [Function: parserOnHeadersComplete], | |
'2': [Function: parserOnBody], | |
'3': [Function: parserOnMessageComplete], | |
'4': [Function: onParserExecute], | |
_headers: [], | |
_url: '', | |
socket: [Circular], | |
incoming: [Circular], | |
maxHeaderPairs: 2000, | |
onIncoming: [Function: parserOnIncoming] }, | |
on: [Function: socketOnWrap], | |
_paused: false, | |
read: [Function], | |
_consuming: true, | |
_httpMessage: | |
ServerResponse { | |
domain: null, | |
_events: [Object], | |
_eventsCount: 1, | |
_maxListeners: undefined, | |
output: [], | |
outputEncodings: [], | |
outputCallbacks: [], | |
writable: true, | |
_last: false, | |
chunkedEncoding: false, | |
shouldKeepAlive: true, | |
useChunkedEncodingByDefault: true, | |
sendDate: true, | |
_removedHeader: {}, | |
_contentLength: null, | |
_hasBody: true, | |
_trailer: '', | |
finished: false, | |
_headerSent: false, | |
socket: [Circular], | |
connection: [Circular], | |
_header: null, | |
_headers: [Object], | |
_headerNames: [Object], | |
req: [Circular], | |
locals: {} } }, | |
_consuming: true, | |
_dumped: false, | |
next: [Function: next], | |
baseUrl: '', | |
originalUrl: '/', | |
_parsedUrl: | |
Url { | |
protocol: null, | |
slashes: null, | |
auth: null, | |
host: null, | |
port: null, | |
hostname: null, | |
hash: null, | |
search: null, | |
query: null, | |
pathname: '/', | |
path: '/', | |
href: '/', | |
_raw: '/' }, | |
params: {}, | |
query: {}, | |
res: | |
ServerResponse { | |
domain: null, | |
_events: { finish: [Function: resOnFinish] }, | |
_eventsCount: 1, | |
_maxListeners: undefined, | |
output: [], | |
outputEncodings: [], | |
outputCallbacks: [], | |
writable: true, | |
_last: false, | |
chunkedEncoding: false, | |
shouldKeepAlive: true, | |
useChunkedEncodingByDefault: true, | |
sendDate: true, | |
_removedHeader: {}, | |
_contentLength: null, | |
_hasBody: true, | |
_trailer: '', | |
finished: false, | |
_headerSent: false, | |
socket: | |
Socket { | |
_connecting: false, | |
_hadError: false, | |
_handle: [Object], | |
_parent: null, | |
_host: null, | |
_readableState: [Object], | |
readable: true, | |
domain: null, | |
_events: [Object], | |
_eventsCount: 10, | |
_maxListeners: undefined, | |
_writableState: [Object], | |
writable: true, | |
allowHalfOpen: true, | |
destroyed: false, | |
bytesRead: 0, | |
_bytesDispatched: 0, | |
_sockname: null, | |
_pendingData: null, | |
_pendingEncoding: '', | |
server: [Object], | |
_idleTimeout: 120000, | |
_idleNext: [Object], | |
_idlePrev: [Object], | |
_idleStart: 106769, | |
parser: [Object], | |
on: [Function: socketOnWrap], | |
_paused: false, | |
read: [Function], | |
_consuming: true, | |
_httpMessage: [Circular] }, | |
connection: | |
Socket { | |
_connecting: false, | |
_hadError: false, | |
_handle: [Object], | |
_parent: null, | |
_host: null, | |
_readableState: [Object], | |
readable: true, | |
domain: null, | |
_events: [Object], | |
_eventsCount: 10, | |
_maxListeners: undefined, | |
_writableState: [Object], | |
writable: true, | |
allowHalfOpen: true, | |
destroyed: false, | |
bytesRead: 0, | |
_bytesDispatched: 0, | |
_sockname: null, | |
_pendingData: null, | |
_pendingEncoding: '', | |
server: [Object], | |
_idleTimeout: 120000, | |
_idleNext: [Object], | |
_idlePrev: [Object], | |
_idleStart: 106769, | |
parser: [Object], | |
on: [Function: socketOnWrap], | |
_paused: false, | |
read: [Function], | |
_consuming: true, | |
_httpMessage: [Circular] }, | |
_header: null, | |
_headers: { 'x-powered-by': 'Express' }, | |
_headerNames: { 'x-powered-by': 'X-Powered-By' }, | |
req: [Circular], | |
locals: {} }, | |
body: '{ post { title } }', | |
_body: true, | |
length: undefined, | |
read: [Function] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment