We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10821b2 commit ef319e3Copy full SHA for ef319e3
1 file changed
gvm/protocols/_protocol.py
@@ -120,6 +120,12 @@ def _transform(self, response: Response) -> T:
120
return transform(response)
121
122
def _send_request(self, request: Request) -> Response:
123
+ """
124
+ Send a request to the remote daemon and return the response
125
+
126
+ Args:
127
+ request: The request to be send.
128
129
try:
130
send_data = self._protocol.send(request)
131
self._send(send_data)
@@ -133,4 +139,10 @@ def _send_request(self, request: Request) -> Response:
133
139
raise e
134
140
135
141
def _send_request_and_transform_response(self, request: Request) -> T:
142
143
+ Send a request and transform its response using the transform callable.
144
145
146
147
136
148
return self._transform(self._send_request(request))
0 commit comments