MCPcopy
hub / github.com/USArmyResearchLab/Dshell / http_handler

Method http_handler

dshell/plugins/httpplugin.py:250–268  ·  view source on GitHub ↗

A placeholder. Plugins will be able to overwrite this to perform custom activites on HTTP data. It SHOULD return a list containing the sames types of values that came in as arguments (i.e. return (conn, request, response)) or None. This is mostly a

(self, conn, request, response)

Source from the content-addressed store, hash-verified

248 return conn
249
250 def http_handler(self, conn, request, response):
251 """
252 A placeholder.
253
254 Plugins will be able to overwrite this to perform custom activites
255 on HTTP data.
256
257 It SHOULD return a list containing the sames types of values that came
258 in as arguments (i.e. return (conn, request, response)) or None. This
259 is mostly a consistency thing. Realistically, it only needs to return
260 some value that evaluates to True to pass the Blobs along to additional
261 plugins.
262
263 Arguments:
264 conn: a Connection object
265 request: a HTTPRequest object
266 response: a HTTPResponse object
267 """
268 return conn, request, response
269
270DshellPlugin = None

Callers 1

connection_handlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected