proxygen
CodecErrorResponseHandler.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-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. An additional grant
7  * of patent rights can be found in the PATENTS file in the same directory.
8  *
9  */
10 #pragma once
11 
13 
14 namespace proxygen {
15 
16 class HTTPErrorPage;
17 
20 public:
22 
23  // HTTPTransaction::Handler methods
24  void setTransaction(HTTPTransaction* txn) noexcept override;
25  void detachTransaction() noexcept override;
26  void onHeadersComplete(std::unique_ptr<HTTPMessage> msg) noexcept override;
27  void onBody(std::unique_ptr<folly::IOBuf> chain) noexcept override;
28  void onTrailers(std::unique_ptr<HTTPHeaders> trailers) noexcept override;
29  void onEOM() noexcept override;
30  void onUpgrade(UpgradeProtocol protocol) noexcept override;
31  void onError(const HTTPException& error) noexcept override;
32  // These are no-ops since the error response is already in memory
33  void onEgressPaused() noexcept override {};
34  void onEgressResumed() noexcept override {};
35 
36 private:
37  ~CodecErrorResponseHandler() override;
38 
40 };
41 
42 } // proxygen
void onHeadersComplete(std::unique_ptr< HTTPMessage > msg) noexceptoverride
spdy::GoawayStatusCode statusCode
Definition: SPDYCodec.cpp:110
void onTrailers(std::unique_ptr< HTTPHeaders > trailers) noexceptoverride
requires E e noexcept(noexcept(s.error(std::move(e))))
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)
Definition: error.h:48
void setTransaction(HTTPTransaction *txn) noexceptoverride
void onError(const HTTPException &error) noexceptoverride
void onBody(std::unique_ptr< folly::IOBuf > chain) noexceptoverride
void onUpgrade(UpgradeProtocol protocol) noexceptoverride