Merge pull request #226 from haskell-servant/jkarni/octet-default

Document octet-stream default RFC.
This commit is contained in:
Julian Arni 2015-09-15 17:36:21 +02:00
commit 81e08f31d1

View file

@ -686,7 +686,8 @@ instance HasServer Raw where
-- that takes an argument of the type specified by 'ReqBody'. -- that takes an argument of the type specified by 'ReqBody'.
-- The @Content-Type@ header is inspected, and the list provided is used to -- The @Content-Type@ header is inspected, and the list provided is used to
-- attempt deserialization. If the request does not have a @Content-Type@ -- attempt deserialization. If the request does not have a @Content-Type@
-- header, it is treated as @application/octet-stream@. -- header, it is treated as @application/octet-stream@ (as specified in
-- <http://tools.ietf.org/html/rfc7231#section-3.1.1.5 RFC7231>.
-- This lets servant worry about extracting it from the request and turning -- This lets servant worry about extracting it from the request and turning
-- it into a value of the type you specify. -- it into a value of the type you specify.
-- --