xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/blind_sign_auth/blind_sign_http_response.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright (c) 2023 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 #ifndef QUICHE_BLIND_SIGN_AUTH_BLIND_SIGN_HTTP_RESPONSE_H_
6 #define QUICHE_BLIND_SIGN_AUTH_BLIND_SIGN_HTTP_RESPONSE_H_
7 
8 #include <map>
9 #include <string>
10 #include <utility>
11 #include <vector>
12 
13 #include "quiche/common/platform/api/quiche_export.h"
14 
15 namespace quiche {
16 
17 // Contains a response to a HTTP POST request issued by BlindSignAuth.
18 class QUICHE_EXPORT BlindSignHttpResponse {
19  public:
BlindSignHttpResponse(int status_code,std::string body)20   BlindSignHttpResponse(int status_code, std::string body)
21       : status_code_(status_code), body_(std::move(body)) {}
22 
status_code()23   int status_code() const { return status_code_; }
body()24   const std::string& body() const { return body_; }
25 
26  private:
27   int status_code_;
28   std::string body_;
29 };
30 
31 }  // namespace quiche
32 
33 #endif  // QUICHE_BLIND_SIGN_AUTH_BLIND_SIGN_HTTP_RESPONSE_H_
34