Archived
1
This repository has been archived on 2020-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
jsonpub/util.go
2020-02-07 09:54:17 +01:00

19 lines
342 B
Go

package main
import (
"net/http"
)
const ContentTypeAs2 = "application/activity+json"
func isSuccess(code int) bool {
return code == http.StatusOK ||
code == http.StatusCreated ||
code == http.StatusAccepted ||
code == http.StatusNoContent
}
func context() [1]string {
return [1]string{"https://www.w3.org/ns/activitystreams"}
}