Skip to content

JsonHandler not removable as described in documentation #105

@Taldrit78

Description

@Taldrit78

I tried to unset the DefaultJsonHandler like described by this link:
https://restclient.dalsoft.io/docs/default-pipeline/
But this:
Config config = new Config()
{
UseDefaultHandlers = false
}.UseFormUrlEncodedHandler().UseMultipartFormDataHandler();
creates a config with all three handlers:
{DalSoft.RestClient.Handlers.DefaultJsonHandler},
{DalSoft.RestClient.Handlers.FormUrlEncodedHandler} and
{DalSoft.RestClient.Handlers.MultipartFormDataHandler}

But it is written, that UseDefaultHandlers = false would remove the DefaultJsonHandler from the list, so it should be done. Right? ;)

p.s.: I tried also
Config config = new Config().UseFormUrlEncodedHandler().UseMultipartFormDataHandler().UseNoDefaultHandlers();
But to the same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions