Skip to content

Commit a7f92b8

Browse files
committed
Reintroduce accidently removed method.
1 parent 2498af3 commit a7f92b8

File tree

1 file changed

+14
-0
lines changed
  • PyFunceble/checker/availability/extras

1 file changed

+14
-0
lines changed

PyFunceble/checker/availability/extras/base.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,20 @@ def set_status(self, value: AvailabilityCheckerStatus) -> "ExtraRuleHandlerBase"
220220

221221
return self
222222

223+
def do_request(self, *, allow_redirects: bool = True) -> requests.Response:
224+
"""
225+
Do a request and store its response into the `req` attribute.
226+
227+
:param bool allow_redirects:
228+
Whether we shoold follow the redirection - or not.
229+
"""
230+
231+
self.req = PyFunceble.factory.Requester.get(
232+
self.req_url, allow_redirects=allow_redirects
233+
)
234+
235+
return self
236+
223237
def do_on_body_match(
224238
self,
225239
url: str,

0 commit comments

Comments
 (0)