Skip to content

RestClient.DefaultParameters missing RemoveParameter extension method #2046

@johnboygit

Description

@johnboygit

In the most recent 110.0.0 release there is no longer a RemoveParameter extension method on the DefaultParameters object.

I had a method implemented like so to allow me to add/replace a default header:

    public void AddDefaultHeader(string name, string value)
    {
        _restClient.DefaultParameters.RemoveParameter(name);
        _restClient.AddDefaultHeader(name, value);
    }

but RemoveParameter() is no longer recognised and causes compilation failure. Is there some other way to remove a default parameter now?

  • OS: Windows 10 x64
  • .NET 6
  • Version: 110.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions