(r *http.Request)
| 17 | ) |
| 18 | |
| 19 | func IsJSON(r *http.Request) bool { |
| 20 | ct, _, _ := mime.ParseMediaType(r.Header.Get("Content-Type")) |
| 21 | accept := r.Header.Get("Accept") |
| 22 | return ct == "application/json" || accept == "application/json" |
| 23 | } |
| 24 | |
| 25 | func IsActivityPubRequest(r *http.Request) bool { |
| 26 | accept := r.Header.Get("Accept") |
no outgoing calls
no test coverage detected