Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Configuration to Not Generate Defined Header Types #2027

Closed

Description

Some Swagger specifications define named HTTP header types, a convenience where instead of having to find a header value string by the name and parse it into a specific type there is an object created and handle by azure-core for this. Unfortunately, in many SDKs this information is dropped when returning the response, instead of ResponseBase<Header, Body> only Response<Body> is returned. For cases like this we should have a configuration to not generate the header types at all, reducing package size and computation overhead of deserializing the HTTP headers into the header type.

Note: The configuration no-custom-headers partially handles this by providing Response<Type> APIs in the generated interface layer to remove the need to deserialize the headers type but this doesn't remove the header type from generation.

Activity

  1. alzimmermsft commented on Nov 7, 2025

    @alzimmermsft
    MemberAuthor

    Closing as this has been added with no-custom-headers and disable-typed-headers-methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions