-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
Clients streaming methods should send routing headers on the initial RPC that opens the stream. Field headers are currently ignored for these methods
gapic-generator-python/gapic/templates/%namespace/%name_%version/%sub/services/%service/client.py.j2
Lines 329 to 341 in eaa6f36
| {%- if method.field_headers %} | |
| # Certain fields should be provided within the metadata header; | |
| # add these here. | |
| metadata = tuple(metadata) + ( | |
| gapic_v1.routing_header.to_grpc_metadata(( | |
| {%- for field_header in method.field_headers %} | |
| {%- if not method.client_streaming %} | |
| ('{{ field_header }}', request.{{ field_header }}), | |
| {%- endif %} | |
| {%- endfor %} | |
| )), | |
| ) |
As far as I know this isn't currently an issue for any libraries on the microgenerator.
Metadata
Metadata
Assignees
Labels
priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.