Make the toy QUIC server send responses of arbitrary length based a number specified in the path.
gfe-relnote: n/a - Tools-only code
PiperOrigin-RevId: 274840831
Change-Id: Ia22584f9ae202896f268a47172e15e8d1a9a75f8
diff --git a/quic/tools/quic_backend_response.h b/quic/tools/quic_backend_response.h
index b578915..f0b7b89 100644
--- a/quic/tools/quic_backend_response.h
+++ b/quic/tools/quic_backend_response.h
@@ -42,6 +42,8 @@
STOP_SENDING, // Acts like INCOMPLETE_RESPONSE in that the entire
// response is not sent. After sending what is sent,
// the server will send a STOP_SENDING.
+ GENERATE_BYTES // Sends a response with a length equal to the number
+ // of bytes in the URL path.
};
QuicBackendResponse();