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

(feat, csharp): support sending bytes requests #3901

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

dsinghvi
Copy link
Member

The design for this in the SDK is:

  1. bytes parameters are typed as Stream so that users can pass in a file stream, byte stream, in memory byte stream, etc.
  2. The RawClient now accepts either a JsonApiRequest or a StreamApiRequest as input so each endpoint can pass in what they want

@dsinghvi dsinghvi marked this pull request as ready for review June 21, 2024 14:49
@@ -38,6 +38,7 @@ export class EndpointGenerator {
endpoint: HttpEndpoint;
rawClientReference: string;
}): csharp.Method {
console.log(`Generating endpoint id ${endpoint.id}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should this use the generator exec context logger? or should it be removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be removed, my b

@dsinghvi dsinghvi merged commit 4f74d69 into main Jun 21, 2024
9 checks passed
@dsinghvi dsinghvi deleted the dsinghvi/support-bytes-requests branch June 21, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants