Make parameters order in a post query configurable
まだ誰も着手していません。
評価
調査の方向性
まず RestRequest と RequestContent.BuildContent を読み、特に 46–53 行目付近のパラメーター処理を確認してから、これまでの経緯を把握するために issue #1937 を確認してください。既存の [File, body, post] の順序がどのように表現されているか、またリクエストごとの順序によって現在のデフォルトをどのように維持できるかを明らかにしてください。既存の動作を壊すことなく、要求された順序を設定できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
has already mention in this issue #1937
I create this issue to speak about technical solution I will PR.
Is your feature request related to a problem? Please describe.
Some API require an exact order of fields in POST multipart formdata.
I the actual behavior the file is always put in first.
Describe the solution you'd like
Make fields order parametable for each request.
To do that, I plan to add in RestRequest an array of 3 Enum value (like ParameterType.File, ParameterType.Body, ParameterType.Post ) which will define the order. (Maybe the enum already exist ? I don't really search for yet )
The default order will be the actual one [File, body, post] to not break existing code.
In the RequestContent.BuildContent I will use this array to re-order call from line 46 to 53 (maybe will add headers in the list also, not sure yet)
Do you thinks this can be a good solution ? Or do you have better idea ?
Describe alternatives you've considered
No work around found
- 主要言語
- C#
- スター
- 9.8k
- フォーク
- 2.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
restsharp/RestSharp のほかの issue
-
RestClientOptions.UserAgent missing from requests with useClientFactory: true対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Expose HTTP response trailers on RestResponse対応中かも @Benziza が 15 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
RestClient configured with Newtonsoft.Json serializer still instantiates System.Text.Json対応中かも @JiuYue0820 が 57 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
feature-request rfc
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
restsharp/RestSharp の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
area:re1 bounty help wanted needs-game
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
StackExchange/StackExchange.Redis#3274 ·
メンテナーはふだん 1 日以内に返信
-
affected/v17 affected/v18 area/frontend type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
umbraco/Umbraco-CMS#24186 ·
メンテナーはふだん 2 日以内に返信