You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These extension methods are no longer needed internally, and although they're public, I suspect they're not very useful, mainly because FlurlRequest and FlurlResponse contain the Headers abstractions that should generally be used.
If there are major objections, I might consider bringing these back, although 3.0 handles the case of multiple headers of the same name (mostly for Set-Header) with the exception these methods, so keeping them as-is isn't a very appealing option.
The SetHeader extension method is still used internally and has a lot of smarts to it, mainly deciding whether to add a given header the message object itself or its Content property, so I'm leaving that one alone.
The text was updated successfully, but these errors were encountered:
Question:
HttpResponseMessage.Headers.GetValues(headerName) is case-insensitive on headerName.
The equivalent using Flurl would be FlurlResponse.Headers.FirstOfDefault(headerName), but I believe it's case-sensitive on headerName, isn't it ?
These extension methods are no longer needed internally, and although they're public, I suspect they're not very useful, mainly because
FlurlRequest
andFlurlResponse
contain theHeaders
abstractions that should generally be used.If there are major objections, I might consider bringing these back, although 3.0 handles the case of multiple headers of the same name (mostly for
Set-Header
) with the exception these methods, so keeping them as-is isn't a very appealing option.The
SetHeader
extension method is still used internally and has a lot of smarts to it, mainly deciding whether to add a given header the message object itself or itsContent
property, so I'm leaving that one alone.The text was updated successfully, but these errors were encountered: