4.5.4.1 Connection Methods

read(length)
Reads length bytes from the connection. The read blocks indefinitely until length bytes has been read. If length is -1, keep reading until the socket is closed from the other end (This is known as EXHAUSTIVE mode in the http server code).

This method should only be used inside Connection Handlers.

readline([length])

Reads a line from the connection or up to length bytes.

This method should only be used inside Connection Handlers.

write(string)

Writes string to the client.

This method should only be used inside Connection Handlers.