proxygen
State.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 #include <fizz/server/State.h>
10 
12 
13 namespace fizz {
14 
16  switch (state) {
17  case StateEnum::Uninitialized:
18  return "Uninitialized";
19  case StateEnum::ExpectingClientHello:
20  return "ExpectingClientHello";
21  case StateEnum::ExpectingCertificate:
22  return "ExpectingCertificate";
23  case StateEnum::AcceptingEarlyData:
24  return "AcceptingEarlyData";
25  case StateEnum::ExpectingCertificateVerify:
26  return "ExpectingCertificateVerify";
27  case StateEnum::ExpectingFinished:
28  return "ExpectingFinished";
29  case StateEnum::AcceptingData:
30  return "AcceptingData";
31  case StateEnum::Closed:
32  return "Closed";
33  case StateEnum::Error:
34  return "Error";
35  case StateEnum::NUM_STATES:
36  return "Invalid state NUM_STATES";
37  }
38  return "Invalid state";
39 }
40 } // namespace fizz
folly::StringPiece toString(StateEnum state)
Definition: State.cpp:16
StateEnum
Definition: Actions.h:16
error_stage Error
state
Definition: http_parser.c:272