Skip to content

Conversation

@WeihanLi
Copy link
Owner

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.md to 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

  • Major rewrite of README.md with 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.
  • Added .github/copilot-instructions.md to provide detailed instructions for building, testing, validating, and troubleshooting dotnet-httpie, including recommended workflows and environment setup steps.

Dependency and Build Updates

  • Updated package versions in Directory.Packages.props for improved stability and compatibility, including upgrades to System.CommandLine, WeihanLi.Common, Microsoft.NET.Test.Sdk, xunit.v3, and Xunit.DependencyInjection.
  • Bumped the minor version in build/version.props from 14 to 15 to reflect the new release.

Workflow and Agent Configuration

  • Added .github/workflows/copilot-setup-steps.yml to automate Copilot environment setup, including multi-version .NET SDK installation and repository checkout for improved CI/CD integration.
  • Added .github/agents/dotnet-agent.md to define a dotnet expert agent, outlining guidance and best practices for C# development and testing.
  • Updated the Create Pull Request step in .github/workflows/dotnet-outdated.yml to use a newer version of the action (v7), and changed PR labels from automated pr to dependencies for better tracking.

WeihanLi and others added 30 commits September 12, 2025 00:29
…g for Basic Auth vs JSON login data

Co-authored-by: WeihanLi <[email protected]>
Add comprehensive GitHub Copilot instructions for dotnet-httpie repository
WeihanLi and others added 19 commits October 27, 2025 03:23
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
@WeihanLi WeihanLi changed the title 1.0.50 0.15.0 Nov 22, 2025
@WeihanLi WeihanLi requested a review from Copilot November 22, 2025 15:59
Copilot finished reviewing on behalf of WeihanLi November 22, 2025 16:01
Copy link
Contributor

Copilot AI left a 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 --stream flag 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

WeihanLi and others added 3 commits November 23, 2025 00:15
Co-authored-by: Copilot <[email protected]>
Removed  duplicate bash code block markers from examples.
@WeihanLi WeihanLi marked this pull request as draft November 22, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants