Returns a Boolean if the given request has a body, regardless of the Content-Type header.
Returns a Boolean if the given request has a body, regardless of the Content-Type header.
Having a body has no relation to how large the body is (it may be 0 bytes). This is similar to how file existence works. If a body does exist, then this indicates that there is data to read from the Node.js request stream.
the given request
a Boolean if the given request has a body, regardless of the Content-Type header.
Returns a match of the given media type and the given array of potential type matches.
Returns a match of the given media type and the given array of potential type matches.
is the media type string.
is an array of types.
the matched type or false if no match was found
Returns a match of the given request's media type and the given array of potential type matches.
Returns a match of the given request's media type and the given array of potential type matches.
is the node HTTP request.
is an array of types.
the matched type or false if no match was found
Type-Is Singleton