proxygen
|
#include <Request.h>
Public Member Functions | |
ShallowCopyRequestContextScopeGuard () | |
ShallowCopyRequestContextScopeGuard (const RequestToken &val, std::unique_ptr< RequestData > data) | |
ShallowCopyRequestContextScopeGuard (const std::string &val, std::unique_ptr< RequestData > data) | |
~ShallowCopyRequestContextScopeGuard () | |
ShallowCopyRequestContextScopeGuard (const ShallowCopyRequestContextScopeGuard &)=delete | |
ShallowCopyRequestContextScopeGuard & | operator= (const ShallowCopyRequestContextScopeGuard &)=delete |
ShallowCopyRequestContextScopeGuard (ShallowCopyRequestContextScopeGuard &&)=delete | |
ShallowCopyRequestContextScopeGuard & | operator= (ShallowCopyRequestContextScopeGuard &&)=delete |
Private Attributes | |
std::shared_ptr< RequestContext > | prev_ |
This guard maintains all the RequestData pointers of the parent. This allows to overwrite a specific RequestData pointer for the scope's duration, without breaking others.
Only modified pointers will have their set/onset methods called
|
inline |
Definition at line 290 of file Request.h.
|
inline |
Shallow copy then overwrite one specific RequestData
Helper constructor which is a more efficient equivalent to "clearRequestData" then "setRequestData" after the guard.
Definition at line 299 of file Request.h.
References folly::RequestContext::get(), folly::gen::move, and folly::RequestContext::overwriteContextData().
|
inline |
Definition at line 305 of file Request.h.
References folly::RequestContext::get(), folly::gen::move, and folly::RequestContext::overwriteContextData().
|
inline |
Definition at line 312 of file Request.h.
References folly::gen::move, and folly::RequestContext::setContext().
|
delete |
|
delete |
|
delete |
|
delete |
|
private |