Lines Matching defs:payload
39 /// When set, indicates that the frame payload is followed by a padding field.
50 /// HTTP/2 frame structure, including the stream ID, flags, and payload
58 payload: Payload,
78 /// Enum representing the payload of an HTTP/2 frame.
79 /// The payload differs based on the type of frame.
82 /// HEADERS frame payload.
84 /// DATA frame payload.
86 /// PRIORITY frame payload.
88 /// RST_STREAM frame payload.
90 /// PING frame payload.
92 /// SETTINGS frame payload.
94 /// GOAWAY frame payload.
96 /// WINDOW_UPDATE frame payload.
125 /// HTTP/2 HEADERS frame's payload, contains pseudo headers and other headers.
131 /// HTTP/2 DATA frame's payload, contains all content after padding is removed.
132 /// The DATA frame defines the payload data of an HTTP/2 request or response.
138 /// Represents the PRIORITY frame payload.
155 /// Represents the PING frame payload.
164 /// Represents the SETTINGS frame payload.
172 /// Represents the GOAWAY frame payload.
182 /// Represents the WINDOW_UPDATE frame payload.
189 /// Represents the PUSH_PROMISE frame payload.
198 /// A Builder of SETTINGS payload.
211 pub fn new(id: StreamId, flags: FrameFlags, payload: Payload) -> Self {
212 Frame { id, flags, payload }
220 /// Returns a reference to the frame's payload (`Payload`).
221 pub fn payload(&self) -> &Payload {
222 &self.payload
225 /// Returns a mutable reference to the frame's payload (`Payload`).
226 /// This can be used to modify the payload of the frame.
228 &mut self.payload
307 /// Returns the type of the frame (`FrameType`) that this payload would be
348 /// Return the `Vec` that contains the data payload.
353 /// Returns the number of bytes in the `Data` payload.
452 /// Consumes the Builder and constructs a SETTINGS payload.