Skip to content

Commit

Permalink
Provide new interface IJSONRequest used to mark requests with an Acce…
Browse files Browse the repository at this point in the history
…pt: application/json header.
  • Loading branch information
thet committed Jun 4, 2020
1 parent 2d6badc commit 8f119f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.rst
Expand Up @@ -5,7 +5,7 @@
5.2.1 (unreleased)
==================

- Nothing changed yet.
- Provide new interface ``IJSONRequest`` used to mark requests with an ``Accept: application/json`` header.


5.2.0 (2020-03-30)
Expand Down
5 changes: 5 additions & 0 deletions src/zope/publisher/interfaces/http.py
Expand Up @@ -213,6 +213,11 @@ def setupLocale():
"""


class IJSONRequest(IHTTPRequest):
"""Marker interface for JSON requests.
"""


class IHTTPView(IView):
"HTTP View"

Expand Down

0 comments on commit 8f119f1

Please sign in to comment.