Commit 48cc34ba authored by Ian Roddis's avatar Ian Roddis

Adding in original interface for maxPayload, marking that interface deprecated.

parent 741c869c
......@@ -24,6 +24,9 @@ public:
Options& maxRequestSize(size_t val);
Options& maxResponseSize(size_t val);
[[deprecated("Replaced by maxRequestSize(val)")]]
Options& maxPayload(size_t val);
private:
int threads_;
Flags<Tcp::Options> flags_;
......
......@@ -44,6 +44,11 @@ Endpoint::Options::maxRequestSize(size_t val) {
return *this;
}
Endpoint::Options&
Endpoint::Options::maxPayload(size_t val) {
return maxRequestSize(val);
}
Endpoint::Options&
Endpoint::Options::maxResponseSize(size_t val) {
maxResponseSize_ = val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment