new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

incomingmessage/properties

8 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

IncomingMessage statusCode property

The statusCode property is an Integer indicating the HTTP response status code.

IncomingMessage statusMessage property

The statusMessage property is a string representing the HTTP status message.

IncomingMessage headers property format

The headers property is a Record<string, string | string[]> representing the HTTP response headers with the following rules: all header names are lowercased; duplicates of age, authorization, content-length, content-type, etag, expires, from, host, if-modified-since, if-unmodified-since, last-modified, location, max-forwards, proxy-authorization, referer, retry-after, server, or user-agent are discarded; set-cookie is always an array with duplicates added to the array; for duplicate cookie headers, values are joined with '; '; for all other headers, values are joined with ', '.

IncomingMessage httpVersion property

The httpVersion property is a string indicating the HTTP protocol version number. Typical values are '1.0' or '1.1'.

IncomingMessage httpVersionMajor property

The httpVersionMajor property is an Integer indicating the HTTP protocol major version number.

IncomingMessage httpVersionMinor property

The httpVersionMinor property is an Integer indicating the HTTP protocol minor version number.

IncomingMessage rawHeaders property

The rawHeaders property is a string[] containing the raw HTTP response headers exactly as they were received. Keys and values are in the same list, not as tuples. Even-numbered offsets are key values and odd-numbered offsets are the associated values. Header names are not lowercased and duplicates are not merged.

IncomingMessage rawHeaders example

Example of rawHeaders output: ```js console.log(response.rawHeaders) // Prints something like: // [ 'user-agent', // 'this is invalid because there can be only one', // 'User-Agent', // 'curl/7.22.0', // 'Host', // '127.0.0.1:8000', // 'ACCEPT', // '*/*' ] ```

Give your agent this brain