The user of the library may not want to pass in a request object, but instead the simple media type string. Since this method is already available (albeit awkward, since the variable used in the examples is is), it might as well be documented. In my use case, I am trying to check the Content-Type of the response in Express middleware. Thanks!
The user of the library may not want to pass in a request object, but instead the simple media type string. Since this method is already available (albeit awkward, since the variable used in the examples is
is
), it might as well be documented. In my use case, I am trying to check theContent-Type
of the response in Express middleware. Thanks!