proxygen
SimpleController.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 #include <string>
14 
15 namespace proxygen {
16 
17 class HTTPErrorPage;
18 class HTTPSessionAcceptor;
19 
26  public:
27  explicit SimpleController(HTTPSessionAcceptor* acceptor);
28 
34  HTTPMessage* msg) override;
35 
43  HTTPTransaction* txn,
44  const HTTPException& error,
45  const folly::SocketAddress& localAddress) override;
46 
51  HTTPTransaction* txn,
52  const folly::SocketAddress& localAddress) override;
53 
54  void attachSession(HTTPSessionBase*) override;
55  void detachSession(const HTTPSessionBase*) override;
56 
57  std::chrono::milliseconds getGracefulShutdownTimeout() const override;
58  protected:
61  const std::string& statusMessage,
62  const HTTPErrorPage* errorPage);
63 
64  HTTPSessionAcceptor* const acceptor_{nullptr};
65 };
66 
67 }
void attachSession(HTTPSessionBase *) override
spdy::GoawayStatusCode statusCode
Definition: SPDYCodec.cpp:110
HTTPTransactionHandler * getParseErrorHandler(HTTPTransaction *txn, const HTTPException &error, const folly::SocketAddress &localAddress) override
HTTPTransactionHandler * getRequestHandler(HTTPTransaction &txn, HTTPMessage *msg) override
HTTPTransactionHandler * createErrorHandler(uint32_t statusCode, const std::string &statusMessage, const HTTPErrorPage *errorPage)
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)
Definition: error.h:48
const char * string
Definition: Conv.cpp:212
HTTPSessionAcceptor *const acceptor_
void detachSession(const HTTPSessionBase *) override
HTTPTransactionHandler * getTransactionTimeoutHandler(HTTPTransaction *txn, const folly::SocketAddress &localAddress) override
std::chrono::milliseconds getGracefulShutdownTimeout() const override
SimpleController(HTTPSessionAcceptor *acceptor)