struct HPack::DecodeResult

Overview

The result of one Decoder#decode_each call.

#decoded_size is the HTTP/2 field-section size of the whole block: the sum of name.bytesize + value.bytesize + 32 over every decoded field, including fields suppressed after the limit was crossed. #limit_exceeded is true when a configured max_field_section_size was crossed.

Defined in:

decoder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(decoded_size : UInt64, limit_exceeded : Bool) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(decoded_size _decoded_size = @decoded_size, limit_exceeded _limit_exceeded = @limit_exceeded) #

[View source]
def decoded_size : UInt64 #

def limit_exceeded : Bool #