function is_content_type(request, ...types) {
	const type = request.headers.get('content-type')?.split(';', 1)[0].trim() ?? '';
	return types.includes(type.toLowerCase());
}
Returns `true` if the request contains a `content-type` header with the given type
@param {Request} request
@param  {...string} types