restsharp / restsharp/RestSharp

Allow Set for ContentType property of Parameter

Open
#2,112 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
C#
Stars
9.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
I can't find a way to not write Content-Type for multipart form-data post. Migrating from v106.

Describe the solution you'd like
Could allow public Set to the ContentType property of the Parameter class?

Additional context
Please check difference between v106.15.0 on the left and v110.2.0 on the right.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Parameter class and its ContentType property, then compare the v106.15.0 and v110.2.0 implementations referenced in the issue. Done means the property can be set as requested and multipart form-data requests no longer require an unwanted Content-Type value.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.