12 #ifndef __NET_WEBMIDDLEWARE_H__
13 #define __NET_WEBMIDDLEWARE_H__
25 class NET_HTTPRequest;
53 myProcessRequest(process_request)
60 bool myProcessRequest;
82 myRedirectHost = redirect_host;
86 myRedirectExempt.clear();
87 myRedirectExempt.setCapacity(exempt.
size());
88 for (
auto&& e : exempt)
89 myRedirectExempt.emplace_back(e);
91 void stsSeconds(
int sts_seconds) { myStsSeconds = sts_seconds; }
93 void stsPreload(
bool preload) { myStsPreload = preload; }
94 void noSniff(
bool no_sniff) { myContentNoSniff = no_sniff; }
99 for (
auto&& item : policy)
105 myReferrerPolicy = std::move(wbuf);
109 myCrossOriginOpenerPolicy = cross_origin_opener_policy;
119 bool myStsIncludeSubdomains;
121 bool myContentNoSniff;
126 #endif // __NET_WEBMIDDLEWARE_H__
Response object used for responding to request in the server.
hboost::math::policies::policy< hboost::math::policies::domain_error< hboost::math::policies::ignore_error >, hboost::math::policies::pole_error< hboost::math::policies::ignore_error >, hboost::math::policies::overflow_error< hboost::math::policies::ignore_error >, hboost::math::policies::underflow_error< hboost::math::policies::ignore_error >, hboost::math::policies::denorm_error< hboost::math::policies::ignore_error >, hboost::math::policies::rounding_error< hboost::math::policies::ignore_error >, hboost::math::policies::evaluation_error< hboost::math::policies::ignore_error >, hboost::math::policies::indeterminate_result_error< hboost::math::policies::ignore_error > > policy
GLsizei const GLchar *const * path
void redirect(bool redirect)
NET_MessageMiddleware(bool process_request)
void referrerPolicy(const UT_StringArray &policy)
void stsSeconds(int sts_seconds)
void redirectHost(const UT_StringHolder &redirect_host)
void redirectExempt(const UT_StringArray &exempt)
void crossOriginOpenerPolicy(const UT_StringHolder &cross_origin_opener_policy)
SYS_FORCE_INLINE bool isEmpty() const
void referrerPolicy(const UT_StringHolder &policy)
virtual void processResponse(const NET_HTTPRequest &req, NET_WebResponse &resp) const
void stsPreload(bool preload)
LeafData & operator=(const LeafData &)=delete
SYS_FORCE_INLINE void append(char character)
virtual void processRequest(NET_HTTPRequest &req) const
void noSniff(bool no_sniff)
void stsIncludeSubdomains(bool include_subdomains)