Skip to content

HttpHeader

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970861634352["mcp.HttpHeader"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970861634352
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

An HTTP header to set when making requests to the MCP server.

Source code in src/aclientp/schema/mcp.py
class HttpHeader(AnnotatedObject):
    """An HTTP header to set when making requests to the MCP server."""

    name: str
    """The name of the HTTP header."""

    value: str
    """The value to set for the HTTP header."""

name instance-attribute

name: str

The name of the HTTP header.

value instance-attribute

value: str

The value to set for the HTTP header.

:fa-brands-github: Show source on GitHub