Clojure content type?

I am writing a web service that uses JSON or optional Clojure data strong> expressions as a body format. Data should be read, not evaluated, if that matters. What do you recommend to use as MIME or Content-type for Clojure?

Here's how far I came: Depending on how you look at it with Clojure, the data may be of type "x", "text", or multi-purpose "application":

application/clojure
text/clojure
application/x-clojure

At http://www.iana.org/assignments/media-types/ I couldn't even find a type for Lisp ... (but again Clojure is not Lisp).

Of course there are two versions

application/json
application/javascript

for JSON and JavaScript, depending on whether the data will be evaluated.

+3
2

, . , , clojure, , application/clojure . , , , , application/javascript application/json.

+2

- :

  • application/vnd.clojure-dataโ€‹โ€‹li >
  • application/prs.jramb.clojure-dataโ€‹โ€‹li >
  • /vnd.clojure
  • /prs.jramb.clojure

. 3.2 3.3 rfc4288

0

Source: https://habr.com/ru/post/1773248/


All Articles