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

Refinement of fake package per API review #20866

Merged
merged 5 commits into from
May 24, 2023

Conversation

jhendrixMSFT
Copy link
Member

Added an HTTP status code parameter to to methods that return a response. For methods that already had such a paraemter, it was relocated to be the first parameter.
Removed Responder[T].SetHeader method, replacing the functionality with an http.Header field in SetResponseOptions.
Cleaned up some wording in the server API doc comments.

  • The purpose of this PR is explained in this or a referenced issue.
  • The PR does not update generated files.
  • Tests are included and/or updated for code changes.
  • Updates to CHANGELOG.md are included.
  • MIT license headers are included in each file.

Added an HTTP status code parameter to to methods that return a
response.  For methods that already had such a paraemter, it was
relocated to be the first parameter.
Removed Responder[T].SetHeader method, replacing the functionality with
an http.Header field in SetResponseOptions.
Cleaned up some wording in the server API doc comments.
the fake package contains the user-facing APIs.
the server package contains APIs used by generated code.
added a shared NonRetriableError helper.
@jhendrixMSFT
Copy link
Member Author

jhendrixMSFT commented May 17, 2023

Needs more test coverage in the server package.

@jhendrixMSFT jhendrixMSFT merged commit 0d2481f into Azure:main May 24, 2023
@jhendrixMSFT jhendrixMSFT deleted the azcore_fake_cleanup branch May 24, 2023 19:58
jhendrixMSFT added a commit to jhendrixMSFT/azure-sdk-for-go that referenced this pull request Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants