Request & Response
Request
Is a JSON object. Important:
url: string after domain: headers: object contain... All kind of headers for reference:
Response
Simple
Under-the-hood Request & Response
Request Body is sent as Stream of Data
maybe a file, or an object, or string... Request Body is broken into chunks use af Buffer (Buffer holds multiple chunks) On fully parsed, convert the data can’t work with data instantly This is a RAW logic, will eventually use Express to solve this complex.
Event-driven Execution
Back to async, await, promise things