Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for URL encoded form posts. #46

Merged
merged 1 commit into from
Jul 6, 2014
Merged

Support for URL encoded form posts. #46

merged 1 commit into from
Jul 6, 2014

Conversation

bennor
Copy link
Contributor

@bennor bennor commented Jun 28, 2014

I'm not sure if this is done yet. So far there's only support for URL encoded form data in the request body -- not the response. I've never come across an API that responds with form data. The Slack API is the only API I can think of that accepts form data, but it responds with JSON.

The other thing I'm not sure what to do about is XML. There was a BodySerializationMethod.Xml but I removed it because, as far as I can tell, refit doesn't support XML at all yet. There was definitely nothing referring to that enum value anyway.


class FormValueDictionary : Dictionary<string, string>
{
// Can't use ConcurrentDictionary because Silverlight doesn't have it
Copy link
Member

Choose a reason for hiding this comment

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

We're not going to be constantly reading and writing to this collection from multiple threads, it's actually more efficient to just use lock in these cases

@anaisbetts anaisbetts merged commit ce83803 into reactiveui:master Jul 6, 2014
@bennor bennor deleted the form-posts branch October 12, 2014 20:38
@lock lock bot locked and limited conversation to collaborators Jun 25, 2019
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