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(enhancement)!: seperate generate curl cmd from debug flow #928 #934

Merged
merged 1 commit into from
Jan 1, 2025

Conversation

jeevatkm
Copy link
Member

@jeevatkm jeevatkm commented Jan 1, 2025

fixes #928

@jeevatkm jeevatkm added this to the v3.0.0 Milestone milestone Jan 1, 2025
@jeevatkm jeevatkm self-assigned this Jan 1, 2025
Copy link

codecov bot commented Jan 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.81%. Comparing base (cf25584) to head (9b82799).
Report is 1 commits behind head on v3.

Additional details and impacted files
@@           Coverage Diff           @@
##               v3     #934   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files          17       17           
  Lines        3781     3788    +7     
=======================================
+ Hits         3774     3781    +7     
  Misses          5        5           
  Partials        2        2           
Flag Coverage Δ
unittests 99.81% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jeevatkm jeevatkm merged commit 08506ee into v3 Jan 1, 2025
9 checks passed
@jeevatkm jeevatkm deleted the seperate-curl-from-debug branch January 1, 2025 07:04
// - curl body is not generated for [io.Reader] and multipart request flow.
//
// It can be overridden at the request level; see [Request.SetGenerateCurlCmd]
func (c *Client) SetGenerateCurlCmd(b bool) *Client {

Choose a reason for hiding this comment

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

This one shouldn't be exported.

Otherwise, you had no reason to add Enable and Disable one,no?

Or maybe I'm missing something

Copy link
Member Author

Choose a reason for hiding this comment

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

I kept two kinds of usage variation: Resty users choose one approach based on their need/preference. You may see this in nature methods for frequently used ones, e.g. Debug, Trace, curl, and retry default conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants