-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Start a REST plugin? #240
Comments
Here's what I've thrown together to get a simple GET / JSON workflow working - looks very similar...
|
Thanks I'll kick off this REST plugin at some point soon (next couple of days) - then hand it over to you/your apprentice for finishing, testing, nuget'ing etc Happy for it to go in endjin namespace (cirrious has got plenty in it already) I would avoid HttpClient as a name though ;) |
All sounds good to me. |
Does the new PCL HttpClient stuff work on Android and Touch? |
I believe Xamarin provided their own port... But apparently this is the type of question when I need to use a bat signal up
|
Hmmm.. code escaped batsignals might not work @dsplaisted! |
If you feel like leave random links on issues... ... please add some text explaining what your point is/isn't Pure randomness is reserved for me only :) Thanks |
Thanks - I'm sure Daniel wrote part of those packages... so I'd hope he knows what they are! But I still have no idea what point you are trying to make. Is there some question you are trying to answer? Are you suggesting we shouldn't build a REST plugin because of these packages? Sorry - really very happy for you to contribute ideas, code, links and more - but I've really no idea what you are trying to say. If in doubt, assume I'm still jet-lagged or just that I'm the middle of ten different things... spell it out for me... who do you want to do what with those links? Adding a smilie to help avoid Godwin's Law :) Thanks Stuart |
I'm not sure actually :) |
The problem with randomness is you can never be sure... http://dilbert.com/strips/comic/2001-10-25/ :) |
I think I thought that the current portable Http stuff doesn't support compression or the compression parts would have to live in platform specific projects. The new portable HttpClient seems more robust and compression works with adding another nuget "plugin." |
The PCL HttpClient isn't supported (or licensed to run) on Mono, but Xamarin has their own version. You should be able to create a PCL that uses Microsoft.Bcl.Async on Microsoft platforms and Xamarin's version on Mono, but right now you there might be "hacks" required to do so. When Xamarin releases official PCL support hopefully we can make this better. In any case, one option is just to use HttpClient in the platform-specific implementations of your REST plugin. |
Not forgotten this.... Just working on it more slowly than anticipated. (open questions like whether to use httpwebrequest or httpclient... whether to support multipart forms... prototype 1 will be up 'soon' then I'll leave it to others!) |
Code started - pushed it into the network plugin for now - it needed a reason to live. First commit is: It still needs tidying (lots of), testing and some better post stuff added. Also, it's lacking WP compression (my bug-bear) Will get a bit more done tomorrow - but then very ready to hand this on - it can be put in a separate repo or worked on in-place - or we can leave this one as-is and then create a second one or... I hacked it into the N=7 Books example briefly with code like
} Which is called via:
|
I'll be starting to use this plugin.... Does anyone have a newer version than the one provided in the MvvmCross-V3 branch of @slodge? |
Well... this is definitely started... and I know @zleao has some changes underway... and I know others have said they were doing bits... but that's all gone quiet. So I'm closing this general issue. Other more specific issues will have to be raised for specific increments. And I do still hope to get a PCL demo using RestSharp up and running one day.... Thanks all Stuart |
Also cross referencing in https://github.com/zleao/MvvmCrossUtilities from #362 :) |
…names Call MvxAppCompatSetupHelper.FillDefaultBindingNames
Feels like I've been toying with this for ages... could just put the standard cut&paste stuff in the JSON plugin?
I don't really want to get caught up in the REST details, but a simple 80% plugin might help get the ball rolling...
The text was updated successfully, but these errors were encountered: