Skip to main content
Glama
gilberth

MCP Cloudflare DNS Server

validate-header-name.js385 B
'use strict'; const {ERR_INVALID_HTTP_TOKEN} = require('./errors.js'); const isRequestPseudoHeader = require('./is-request-pseudo-header.js'); const isValidHttpToken = /^[\^`\-\w!#$%&*+.|~]+$/; module.exports = name => { if (typeof name !== 'string' || (!isValidHttpToken.test(name) && !isRequestPseudoHeader(name))) { throw new ERR_INVALID_HTTP_TOKEN('Header name', name); } };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gilberth/mcp-cloudflare'

If you have feedback or need assistance with the MCP directory API, please join our Discord server