diff options
Diffstat (limited to 'net/tools/quic/quic_in_memory_cache.cc')
-rw-r--r-- | net/tools/quic/quic_in_memory_cache.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/tools/quic/quic_in_memory_cache.cc b/net/tools/quic/quic_in_memory_cache.cc index b3e08f8..af46ca3 100644 --- a/net/tools/quic/quic_in_memory_cache.cc +++ b/net/tools/quic/quic_in_memory_cache.cc @@ -110,6 +110,18 @@ void QuicInMemoryCache::AddResponse(const BalsaHeaders& request_headers, responses_[GetKey(request_headers)] = new_response; } +void QuicInMemoryCache::AddSpecialResponse(StringPiece method, + StringPiece path, + StringPiece version, + SpecialResponseType response_type) { + BalsaHeaders request_headers, response_headers; + request_headers.SetRequestFirstlineFromStringPieces(method, + path, + version); + AddResponse(request_headers, response_headers, ""); + responses_[GetKey(request_headers)]->response_type_ = response_type; +} + QuicInMemoryCache::QuicInMemoryCache() { Initialize(); } |