We have a HeaderNames class with a list of popular header names. Sometimes we want to type .WithContentTypeHeader("application/json") and it's better to use something like .WithContentTypeHeader(HeaderValues.ApplicationJson) to avoid stupid typos and other mistakes.
We have a
HeaderNamesclass with a list of popular header names. Sometimes we want to type.WithContentTypeHeader("application/json")and it's better to use something like.WithContentTypeHeader(HeaderValues.ApplicationJson)to avoid stupid typos and other mistakes.