class

RawHTTP::Body

Inherits Reference < Object

Constructors

new(body : String | Array(String))
Source

Class methods

read_chunk(sock)
Source
read_for_header(sock, header)
Source
write_chunk(sock, chunk)
Source

Instance methods

body
Source
decoded(content_encoding)
Source
to_s(io)

Decoded representation

Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
write(sock)

Encoded representation

Source