raxx v0.11.0 Raxx.Headers

BETA: unsure if this module should world on request/response objects?

Summary

Functions

content type is a field of type media type (same as Accept) https://tools.ietf.org/html/rfc7231#section-3.1.1.5

https://tools.ietf.org/html/rfc7231#section-3.1.1.1

Functions

content_type(map)

content type is a field of type media type (same as Accept) https://tools.ietf.org/html/rfc7231#section-3.1.1.5

Content type should be send with any content. If not can assume “application/octet-stream” or try content sniffing. because of security risks it is recommended to be able to disable sniffing

parse_media_type(media_type)

https://tools.ietf.org/html/rfc7231#section-3.1.1.1