/plz-media-type

A plz.el extension library to handle media types.

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

plz-media-type

https://img.shields.io/badge/license-GPL_3-green.svg http://elpa.gnu.org/packages/plz-media-type.svg https://github.com/r0man/plz-media-type/actions/workflows/test.yml/badge.svg

plz-media-type is an Emacs Lisp library that enhances MIME type handling for HTTP requests within Emacs. It leverages the plz.el HTTP library for networking calls and introduces a mechanism to process responses based on the content type header. This library defines various classes and methods for parsing and processing standard MIME types, including JSON, XML, HTML, and binary data. It is used in the LLM library to handle decoding of various streaming and non-streaming media type formats.