MCPcopy Index your code
hub / github.com/writefreely/writefreely / IsActivityPubRequest

Function IsActivityPubRequest

request.go:25–29  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

23}
24
25func IsActivityPubRequest(r *http.Request) bool {
26 accept := r.Header.Get("Accept")
27 return strings.Contains(accept, "application/activity+json") ||
28 accept == "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""
29}

Callers 5

fetchPostFunction · 0.85
viewCollectionPostFunction · 0.85
handleHTTPErrorMethod · 0.85
fetchCollectionFunction · 0.85
handleViewCollectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected