-
Notifications
You must be signed in to change notification settings - Fork 4
0.15.0 #126
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: WeihanLi <[email protected]>
… command reference Co-authored-by: WeihanLi <[email protected]>
Co-authored-by: WeihanLi <[email protected]>
Co-authored-by: WeihanLi <[email protected]>
…e flag Co-authored-by: WeihanLi <[email protected]>
Co-authored-by: WeihanLi <[email protected]>
…ion commands Co-authored-by: WeihanLi <[email protected]>
Co-authored-by: WeihanLi <[email protected]>
…y fixes Co-authored-by: WeihanLi <[email protected]>
Co-authored-by: WeihanLi <[email protected]>
…fix dotnet-exec command Co-authored-by: WeihanLi <[email protected]>
…g for Basic Auth vs JSON login data Co-authored-by: WeihanLi <[email protected]>
Co-authored-by: WeihanLi <[email protected]>
…ant sections Co-authored-by: WeihanLi <[email protected]>
Add comprehensive GitHub Copilot instructions for dotnet-httpie repository
merge upstream
…work options, config files Co-authored-by: WeihanLi <[email protected]>
Updated agent name and description for dotnet-agent.
Add --stream option to enable streaming response body output as it arrives. - Add StreamOption to RequestExecutor - Implement InvokeStreamingRequest method for streaming responses - Change HttpResponseModel.Bytes from init to set to support streaming - Add IsStreamingMode flag to track streaming state - Skip normal output formatting when in streaming mode - Add unit tests for streaming option recognition Co-authored-by: WeihanLi <[email protected]>
Add StreamingCompleted flag to track when streaming actually occurred. Only skip normal output formatting when streaming was actually performed, not just when the streaming option was present. Co-authored-by: WeihanLi <[email protected]>
- Use response encoding from Content-Type header instead of hardcoded UTF-8 - Improve error handling in catch block with logging - Add documentation comment for IsTextResponse behavior Co-authored-by: WeihanLi <[email protected]>
…d603691-b6e3-4b67-ab7c-0e710515503e Add --stream option to output HTTP response body as it arrives
Update NuGet Packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request introduces version 0.15.0 of dotnet-httpie, delivering significant improvements in documentation, dependency management, streaming support, and developer tooling. The release focuses on enhancing user experience through comprehensive documentation rewrites and adding new HTTP streaming capabilities.
- Enhanced Documentation: Complete rewrite of README.md and addition of extensive documentation covering installation, usage patterns, Docker integration, CI/CD, authentication, and troubleshooting
- Streaming Support: New
--streamflag implementation for real-time response body streaming (text responses only) - Dependency Updates: Upgraded to stable versions of System.CommandLine (2.0.0), WeihanLi.Common (1.0.84), and updated test frameworks
- Developer Experience: Added Copilot integration files and improved build automation
Reviewed changes
Copilot reviewed 29 out of 30 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/HTTPie/Implement/RequestExecutor.cs | Adds streaming mode support with new --stream option and InvokeStreamingRequest method for real-time response output |
| src/HTTPie/Utilities/Helpers.cs | Updates HTTP version formatting and adds early streaming mode detection for test scenarios |
| src/HTTPie/Utilities/Constants.cs | Adds flag constants for streaming mode tracking |
| src/HTTPie/Models/HttpResponseModel.cs | Changes Bytes property from init to set to support streaming scenarios |
| src/HTTPie/Middleware/RequestDataMiddleware.cs | Adds AOT compilation attributes for JSON operations |
| src/HTTPie/Implement/OutputFormatter.cs | Updates verbose option description and HTTP version output formatting |
| tests/HTTPie.UnitTest/Utilities/HelpersTest.cs | Adds unit tests for streaming option recognition |
| tests/Directory.Build.props | Comments out Microsoft Testing Platform runner |
| Directory.Packages.props | Updates dependencies to stable versions |
| build/version.props | Bumps version from 0.14 to 0.15 |
| build.sh | New build script using dotnet-execute tool |
| README.md | Complete restructuring with modern formatting, comprehensive examples, and better organization |
| docs/articles/*.md | Extensive new documentation files covering all aspects of the tool |
| .github/workflows/dotnet-outdated.yml | Updates to create-pull-request action v7 and changes PR labels |
| .github/workflows/copilot-setup-steps.yml | New workflow for Copilot environment setup |
| .github/copilot-instructions.md | Comprehensive instructions for GitHub Copilot integration |
| .github/agents/dotnet-agent.md | Agent definition for dotnet expertise |
| src/Directory.Build.props | Simplifies CI build detection to use CI environment variable |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Removed duplicate bash code block markers from examples.
Update NuGet Packages
This pull request introduces several key improvements to documentation, dependency management, and project setup for the dotnet-httpie project. The most significant changes are a comprehensive rewrite of the
README.mdto better showcase features and usage, updates to package dependencies for stability and compatibility, and the addition of new workflow and agent configuration files to support development and Copilot integration.Documentation and Usage Improvements
README.mdwith clearer feature highlights, improved quick start instructions, expanded examples, advanced usage, Docker integration, and contribution guidelines. The new documentation is more user-friendly and covers all major aspects of the tool..github/copilot-instructions.mdto provide detailed instructions for building, testing, validating, and troubleshooting dotnet-httpie, including recommended workflows and environment setup steps.Dependency and Build Updates
Directory.Packages.propsfor improved stability and compatibility, including upgrades toSystem.CommandLine,WeihanLi.Common,Microsoft.NET.Test.Sdk,xunit.v3, andXunit.DependencyInjection.build/version.propsfrom 14 to 15 to reflect the new release.Workflow and Agent Configuration
.github/workflows/copilot-setup-steps.ymlto automate Copilot environment setup, including multi-version .NET SDK installation and repository checkout for improved CI/CD integration..github/agents/dotnet-agent.mdto define a dotnet expert agent, outlining guidance and best practices for C# development and testing.Create Pull Requeststep in.github/workflows/dotnet-outdated.ymlto use a newer version of the action (v7), and changed PR labels fromautomated prtodependenciesfor better tracking.