Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
Compress.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
orbit/routing/Router.hpp
>
3
4
namespace
middleware
{
5
19
routing::Middleware
compress
();
20
21
}
// namespace middleware
Router.hpp
middleware::compress
routing::Middleware compress()
Returns a middleware that automatically compresses the HTTP response body using GZIP.
Definition
Compress.cpp:8
middleware
Definition
Compress.hpp:4
routing::Middleware
std::function< bool(http::HttpRequest &, std::shared_ptr< http::ResponseWriter >)> Middleware
Definition
Router.hpp:17
include
orbit
middleware
Compress.hpp
Generated by
1.9.8