blob: 7900683913d96e4c33deb2c06e2ae15cf8a320a9 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "net/third_party/quiche/src/quic/tools/quic_backend_response.h"
6
7namespace quic {
8
9QuicBackendResponse::ServerPushInfo::ServerPushInfo(
10 QuicUrl request_url,
11 spdy::SpdyHeaderBlock headers,
12 spdy::SpdyPriority priority,
vasilvvc48c8712019-03-11 13:38:16 -070013 std::string body)
QUICHE teama6ef0a62019-03-07 20:34:33 -050014 : request_url(request_url),
15 headers(std::move(headers)),
16 priority(priority),
17 body(body) {}
18
19QuicBackendResponse::ServerPushInfo::ServerPushInfo(const ServerPushInfo& other)
20 : request_url(other.request_url),
21 headers(other.headers.Clone()),
22 priority(other.priority),
23 body(other.body) {}
24
25QuicBackendResponse::QuicBackendResponse() : response_type_(REGULAR_RESPONSE) {}
26
27QuicBackendResponse::~QuicBackendResponse() = default;
28
29} // namespace quic