Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RefactoringGuru/design-patterns-python
/ check_access
Method
check_access
src/Proxy/Conceptual/main.py:81–83 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
79
self.log_access()
80
81
def
check_access(self) -> bool:
82
print(
"Proxy: Checking access prior to firing a real request."
)
83
return
True
84
85
def
log_access(self) -> None:
86
print(
"Proxy: Logging the time of request."
, end=
""
)
Callers
1
request
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected