Closed techpavan closed 5 years ago
Hi, Why would you want to exclude a header as method parameter? If you want to ignore it - why do you define it?
Its not like ignoring, but the same value is provided twice as method parameters, one as individual param and other as a part of headers. When too many headers are defined, the method length would be too high which might not look good.
Implementing list of ignored headers would be cumbersome. IMHO, it would make more sense to add flag to skip all individual headers as method arguments. What do you think?
That's right. And that's what I actually meant, not sure if my choice of words gave a different meaning.
It might be a better option to automatically skip all individual headers when injectHttpHeadersParameter
is in use since they can be accessed from header object.
What do you think?
That would work well. There is no need of headers individually when all headers are available.
It might remove a lot of clutter in the method signature if there is an option to skip adding individual headers as method parameters when headers object is added in the parameter.