Lines Matching refs:spdy
21 #include "net/spdy/spdy_framer.h"
33 // This struct holds information used to construct spdy control and data frames.
35 spdy::SpdyControlType kind;
36 spdy::SpdyStreamId id;
37 spdy::SpdyStreamId assoc_id;
38 spdy::SpdyPriority priority;
39 spdy::SpdyControlFlags control_flags;
41 spdy::SpdyStatusCodes status;
44 spdy::SpdyDataFlags data_flags;
56 MockWrite* ChopWriteFrame(const spdy::SpdyFrame& frame, int num_chunks);
67 MockRead* ChopReadFrame(const spdy::SpdyFrame& frame, int num_chunks);
76 spdy::SpdyHeaderBlock* headers);
108 // Construct a SPDY packet.
116 spdy::SpdyFrame* ConstructSpdyPacket(const SpdyHeaderInfo& header_info,
123 spdy::SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[],
128 spdy::SpdyControlType type,
129 spdy::SpdyControlFlags flags,
132 spdy::SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[],
137 spdy::SpdyControlType type,
138 spdy::SpdyControlFlags flags,
143 // Construct an expected SPDY reply string.
153 // Construct an expected SPDY SETTINGS frame.
156 spdy::SpdyFrame* ConstructSpdySettings(spdy::SpdySettings settings);
158 // Construct a SPDY PING frame.
160 spdy::SpdyFrame* ConstructSpdyPing();
162 // Construct a SPDY GOAWAY frame.
164 spdy::SpdyFrame* ConstructSpdyGoAway();
166 // Construct a SPDY WINDOW_UPDATE frame.
168 spdy::SpdyFrame* ConstructSpdyWindowUpdate(spdy::SpdyStreamId,
171 // Construct a SPDY RST_STREAM frame.
173 spdy::SpdyFrame* ConstructSpdyRstStream(spdy::SpdyStreamId stream_id,
174 spdy::SpdyStatusCodes status);
176 // Construct a single SPDY header entry, for validation.
187 // Constructs a standard SPDY GET SYN packet, optionally compressed
192 spdy::SpdyFrame* ConstructSpdyGet(const char* const url,
197 // Constructs a standard SPDY GET SYN packet, optionally compressed.
201 spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[],
207 // Constructs a standard SPDY GET SYN packet, optionally compressed.
212 spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[],
219 // Constructs a standard SPDY SYN_STREAM frame for a CONNECT request.
220 spdy::SpdyFrame* ConstructSpdyConnect(const char* const extra_headers[],
224 // Constructs a standard SPDY push SYN packet.
228 spdy::SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
232 spdy::SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
237 spdy::SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
244 spdy::SpdyFrame* ConstructSpdyPush(int stream_id,
248 spdy::SpdyFrame* ConstructSpdyPushHeaders(int stream_id,
252 // Constructs a standard SPDY SYN_REPLY packet to match the SPDY GET.
256 spdy::SpdyFrame* ConstructSpdyGetSynReply(const char* const extra_headers[],
260 // Constructs a standard SPDY SYN_REPLY packet to match the SPDY GET.
264 spdy::SpdyFrame* ConstructSpdyGetSynReplyRedirect(int stream_id);
266 // Constructs a standard SPDY SYN_REPLY packet with an Internal Server
269 spdy::SpdyFrame* ConstructSpdySynReplyError(int stream_id);
271 // Constructs a standard SPDY SYN_REPLY packet with the specified status code.
273 spdy::SpdyFrame* ConstructSpdySynReplyError(
279 // Constructs a standard SPDY POST SYN packet.
283 spdy::SpdyFrame* ConstructSpdyPost(int64 content_length,
287 // Constructs a chunked transfer SPDY POST SYN packet.
291 spdy::SpdyFrame* ConstructChunkedSpdyPost(const char* const extra_headers[],
294 // Constructs a standard SPDY SYN_REPLY packet to match the SPDY POST.
298 spdy::SpdyFrame* ConstructSpdyPostSynReply(const char* const extra_headers[],
301 // Constructs a single SPDY data frame with the contents "hello!"
302 spdy::SpdyFrame* ConstructSpdyBodyFrame(int stream_id,
305 // Constructs a single SPDY data frame with the given content.
306 spdy::SpdyFrame* ConstructSpdyBodyFrame(int stream_id, const char* data,
310 spdy::SpdyFrame* ConstructWrappedSpdyFrame(
311 const scoped_ptr<spdy::SpdyFrame>& frame, int stream_id);
314 MockWrite CreateMockWrite(const spdy::SpdyFrame& req);
317 MockWrite CreateMockWrite(const spdy::SpdyFrame& req, int seq);
319 MockWrite CreateMockWrite(const spdy::SpdyFrame& req, int seq, bool async);
322 MockRead CreateMockRead(const spdy::SpdyFrame& resp);
325 MockRead CreateMockRead(const spdy::SpdyFrame& resp, int seq);
327 MockRead CreateMockRead(const spdy::SpdyFrame& resp, int seq, bool async);
331 int CombineFrames(const spdy::SpdyFrame** frames, int num_frames,
374 const SpdyHeaderInfo make_spdy_header(spdy::SpdyControlType type);