Package org.microproxy.frames
Record Class Http3Frame.Headers
java.lang.Object
java.lang.Record
org.microproxy.frames.Http3Frame.Headers
- Record Components:
fields- the field section, pseudo-headers first
- All Implemented Interfaces:
Http3Frame,HttpFrame
- Enclosing interface:
Http3Frame
HEADERS (section 7.2.2), with its field section decoded.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.microproxy.frames.Http3Frame
Http3Frame.CancelPush, Http3Frame.Data, Http3Frame.GoAway, Http3Frame.Headers, Http3Frame.MaxPushId, Http3Frame.PushPromise, Http3Frame.Settings, Http3Frame.Unknown -
Field Summary
Fields inherited from interface org.microproxy.frames.Http3Frame
MAX_VARINT, SETTINGS_ENABLE_CONNECT_PROTOCOL, SETTINGS_H3_DATAGRAM, SETTINGS_MAX_FIELD_SECTION_SIZE, SETTINGS_QPACK_BLOCKED_STREAMS, SETTINGS_QPACK_MAX_TABLE_CAPACITY, TYPE_CANCEL_PUSH, TYPE_DATA, TYPE_GOAWAY, TYPE_HEADERS, TYPE_MAX_PUSH_ID, TYPE_PUSH_PROMISE, TYPE_SETTINGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.The first value of a field.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longtypeCode()The frame type's code on the wire.typeName()The frame type's name as the protocol's RFC spells it (DATA,HEADERS,SETTINGS, ...), orUNKNOWNfor an extension or reserved type.withFields(List<Field> newFields) This frame with another field section.withHeader(String name, String value) withoutHeader(String name) This frame without the fields namedname.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.microproxy.frames.Http3Frame
protocol
-
Constructor Details
-
Headers
Creates HEADERS.- Parameters:
fields- the field section, copied
-
-
Method Details
-
typeName
Description copied from interface:HttpFrameThe frame type's name as the protocol's RFC spells it (DATA,HEADERS,SETTINGS, ...), orUNKNOWNfor an extension or reserved type. -
typeCode
public long typeCode()Description copied from interface:HttpFrameThe frame type's code on the wire. -
get
The first value of a field.- Parameters:
name- the field name, lower case- Returns:
- the value, or null if there is no such field
-
withFields
This frame with another field section.- Parameters:
newFields- the new fields- Returns:
- a copy with them
-
withHeader
- Parameters:
name- the field name, lower casevalue- the value- Returns:
- a copy with the field set
-
withoutHeader
This frame without the fields namedname.- Parameters:
name- the field name, lower case- Returns:
- a copy without them
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-