Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
493 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
"""" | ||
ja3Requests.base._context | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Basic Context | ||
""" | ||
|
||
|
||
class BaseContext: | ||
|
||
def __init__(self): | ||
self._protocol = None | ||
self._version = None | ||
self._start_line = None | ||
self._method = None | ||
self._headers = None | ||
self._body = None | ||
self._message = None | ||
|
||
@property | ||
def protocol(self): | ||
return self._protocol | ||
|
||
@protocol.setter | ||
def protocol(self, attr): | ||
self._protocol = attr | ||
|
||
@property | ||
def version(self): | ||
return self._version | ||
|
||
@version.setter | ||
def version(self, attr): | ||
self._version = attr | ||
|
||
@property | ||
def start_line(self): | ||
return self._start_line | ||
|
||
@start_line.setter | ||
def start_line(self, attr): | ||
self._start_line = attr | ||
|
||
@property | ||
def method(self): | ||
return self._method | ||
|
||
@method.setter | ||
def method(self, attr): | ||
self._method = attr | ||
|
||
@property | ||
def headers(self): | ||
return self._headers | ||
|
||
@headers.setter | ||
def headers(self, attr): | ||
self._headers = attr | ||
|
||
@property | ||
def body(self): | ||
return self._body | ||
|
||
@body.setter | ||
def body(self, attr): | ||
self._body = attr | ||
|
||
@property | ||
def message(self): | ||
return self._message | ||
|
||
@message.setter | ||
def message(self, attr): | ||
self._message = attr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
""" | ||
ja3Requests.base._response | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Basic Response | ||
""" | ||
|
||
|
||
class BaseResponse: | ||
|
||
def __init__(self): | ||
|
||
self._raw = None | ||
self._protocol_version = None | ||
self._status_code = None | ||
self._status_text = None | ||
self._headers = None | ||
self._body = None | ||
|
||
@property | ||
def raw(self): | ||
return self._raw | ||
|
||
@raw.setter | ||
def raw(self, attr): | ||
self._raw = attr | ||
|
||
@property | ||
def protocol_version(self): | ||
return self._protocol_version | ||
|
||
@protocol_version.setter | ||
def protocol_version(self, attr): | ||
self._protocol_version = attr | ||
|
||
@property | ||
def status_code(self): | ||
return self._status_code | ||
|
||
@status_code.setter | ||
def status_code(self, attr): | ||
self._status_code = attr | ||
|
||
@property | ||
def status_text(self): | ||
return self._status_text | ||
|
||
@status_text.setter | ||
def status_text(self, attr): | ||
self._status_text = attr | ||
|
||
@property | ||
def headers(self): | ||
return self._headers | ||
|
||
@headers.setter | ||
def headers(self, attr): | ||
self._headers = attr | ||
|
||
@property | ||
def body(self): | ||
return self._body | ||
|
||
@body.setter | ||
def body(self, attr): | ||
self._body = attr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.