diff --git a/rest/rest.go b/rest/rest.go
index <HASH>..<HASH> 100644
--- a/rest/rest.go
+++ b/rest/rest.go
@@ -280,6 +280,10 @@ func (this *engine) Bind(endpoints ...*ServiceMethodImpl) {
 	}
 }
 
+func JSONContentType(req *http.Request) bool {
+	return "application/json" == content_type_for_request(req)
+}
+
 func content_type_for_request(req *http.Request) string {
 	t := "application/json"
Function to check if request content type is JSON