Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to access headers in batch response #2614

Open
meum opened this issue Aug 12, 2024 · 1 comment
Open

No way to access headers in batch response #2614

meum opened this issue Aug 12, 2024 · 1 comment
Labels
type:feature New experience request

Comments

@meum
Copy link

meum commented Aug 12, 2024

Is your feature request related to a problem? Please describe the problem.

I'm trying to log the Date, request-id and client-request-id headers returned from the api, to follow best practices described here: https://learn.microsoft.com/en-us/graph/best-practices-concept#reliability-and-support

image

When using batch requests, the results are in the BatchResponseContentCollection class. There does not appear to be any way to access the headers in this class without using reflection.

Describe the solution you'd like.

A Header or AdditionalData property added to BatchResponseContentCollection, which contains at least Date, request-id and client-request-id

Additional context?

image

@meum meum added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:feature New experience request labels Aug 12, 2024
@shemogumbe shemogumbe removed the status:waiting-for-triage An issue that is yet to be reviewed or assigned label Aug 15, 2024
@shemogumbe
Copy link
Contributor

Potentially related to microsoftgraph/msgraph-sdk-dotnet-core#871

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New experience request
Projects
None yet
Development

No branches or pull requests

2 participants