MCPcopy Create free account
hub / github.com/cdipaolo/sentiment-server / HandleHookedRequest

Function HandleHookedRequest

handler.go:108–173  ·  view source on GitHub ↗

HandleHookedRequest is an http.HandlerFunc which will take a POST request with some id string and a hook_id string, post a GET request to the hook number with the parameters provided in the configuration, and run sentiment analysis on the returned item (it's expected to have a 'text' param in the JS

(r http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

GetHookResponseFunction · 0.85

Tested by

no test coverage detected