1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-10-26 19:57:22 +08:00
This commit is contained in:
stefanocasazza
2015-11-17 17:38:18 +01:00
parent 2d52d6d538
commit 832fe2c988
10 changed files with 120 additions and 104 deletions

View File

@@ -455,6 +455,15 @@ protected:
static void endRequest();
static bool startRequest();
static void do_nothing() {}
// NB: we have default to true to manage pipeline for protocol as RPC...
static bool handlerCache() { return true; }
static bool isValidMethod( const char* ptr) { return true; }
static bool isValidRequest( const char* ptr, uint32_t sz) { return true; }
static bool isValidRequestExt(const char* ptr, uint32_t sz) { return true; }
#ifndef U_CACHE_REQUEST_DISABLE
static bool isRequestCacheable() __pure;
#endif
@@ -469,10 +478,6 @@ protected:
#endif
private:
static bool isValidMethod( const char* ptr) U_NO_EXPORT;
static bool isValidRequest( const char* ptr, uint32_t sz) U_NO_EXPORT;
static bool isValidRequestExt(const char* ptr, uint32_t sz) U_NO_EXPORT;
UClientImage_Base(const UClientImage_Base&) : UEventFd() {}
UClientImage_Base& operator=(const UClientImage_Base&) { return *this; }