struct

ECS::LogEntry::Http::Response

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new

Initialize all values as nil

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

body(value : Body)

A chainable setter for body

Source
body
Source
body

Initialize a new Body, yield it to the block

Source
body=(body : Body | Nil)
Source
bytes(new_value : UInt64)

A chainable setter for bytes

Source
bytes

http.response.bytes

Total size in bytes of the response (body and headers).

Level: Extended Type: Long Example:

1437
Source
bytes=(bytes : UInt64 | Nil)

http.response.bytes

Total size in bytes of the response (body and headers).

Level: Extended Type: Long Example:

1437
Source
status_code(new_value : UInt64)

A chainable setter for status_code

Source
status_code

http.response.status_code

HTTP response status code.

Level: Extended Type: Long Example:

404
Source
status_code=(status_code : UInt64 | Nil)

http.response.status_code

HTTP response status code.

Level: Extended Type: Long Example:

404
Source

Nested types