Skip to content

Provide HttpStatusCode in IOperationResult #4759

@Euphoric

Description

@Euphoric

Is your feature request related to a problem?

I'm using StrawberryShake to test our API and middleware. I would like to assert specific return codes. Currently, StrawberryShake does not provide any way to access the HttpStatusCode of HTTP response.

The solution you'd like

As IOperationResult is meant to be transport agnostic, I would expect this value not to be defined as property. IOperationResult.Extensions or IOperationResult.ContextData can be used for storing this value, with appropriate key.

Product

Strawberry Shake

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions