Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Reorganize the strong header type extensions. Remove SendAsync extensions #290

Merged
merged 1 commit into from
Apr 23, 2015

Conversation

Tratcher
Copy link
Member

#274

HeaderDictionaryTypeExtensions: "Remove everything except GetTypedHeaders. Everything else goes to public method on Either ReuqestHeaders or ResponseHeaders depending on who uses them"
HttpResponseSendingExtensions: "Cut all of these. If there is significant or painful to work around uses then come back to us."

@ghost ghost added the cla-already-signed label Apr 22, 2015
@Tratcher
Copy link
Member Author

@muratg @davidfowl

@@ -23,12 +23,14 @@ public static ResponseHeaders GetTypedHeaders(this HttpResponse response)
return new ResponseHeaders(response.Headers);
}

public static DateTimeOffset? GetDate([NotNull] this IHeaderDictionary headers, [NotNull] string name)
// These are all shared helpers used by both RequestHeaders and ResponseHeaders

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: blank line

@muratg
Copy link

muratg commented Apr 22, 2015

RequestHeaders and ResponseHeaders seem to share some code. Would it make sense to create an abstract class that covers the shared functionality, and move the functionality in the HeaderDictionaryTypeExtensions (which are currently becoming Internal with this change) to this shared abstract class?

@Tratcher
Copy link
Member Author

I tried that in the initial feature work but it was rejected in code review.

@muratg
Copy link

muratg commented Apr 23, 2015

:shipit:

@Tratcher Tratcher merged commit 25aed6f into dev Apr 23, 2015
@Tratcher Tratcher deleted the extensions branch April 23, 2015 17:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants