Skip to content

Allow python client to accept custom http headers #185

Description

@shouichi

Twirp version: 5.8.0

It seems like that the generated python client does not allow us to pass custom http headers. See the following excerpt.

def __make_request(self, body, full_method):
	req = Request(
		url=self.__target + "/twirp" + full_method,
		data=body,
		headers={"Content-Type": "application/protobuf"},
	)

Do you plan to add that feature or accept PR?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions