Issue 36 in jayrock: Add ContentType property to JsonRpcClient

3 views
Skip to first unread message

jay...@googlecode.com

unread,
Jun 29, 2011, 3:31:20 PM6/29/11
to jayrock...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Enhancement Priority-Medium

New issue 36 by rgra...@gmail.com: Add ContentType property to JsonRpcClient
http://code.google.com/p/jayrock/issues/detail?id=36

What new or enhanced feature are you proposing?

Add a ContentType property to the JsonRpcClient which it will use when
creating WebRequest instances.

What goal would this enhancement help you achieve?

The JsonRpcClient uses the default content type for POST. Some servers
expect the content type "application/json-rpc". This enhancement will
allow the JsonRpcClient to be used with a wider range of JsonRpc servers by
allowing for any content type to be used.

Attachments:
JsonRpcClient.cs 5.8 KB

jay...@googlecode.com

unread,
Jul 5, 2011, 2:46:39 AM7/5/11
to jayrock...@googlegroups.com

Comment #1 on issue 36 by azizatif: Add ContentType property to
JsonRpcClient
http://code.google.com/p/jayrock/issues/detail?id=36

Thanks for the patch but unfortauntely it has a bug where content is
encoded as JSON in the (now proposed) default case
of "application/x-www-form-urlencoded". I also don't think this patch is
necessary as you can inherit from JsonRpcClient and override GetWebRequest
and Invoke for extensions/customizations such as the one proposed here. See
attached and modified JsonRpcClientDemo sample.

Attachments:
Program.cs 2.8 KB

jay...@googlecode.com

unread,
Aug 25, 2015, 5:25:45 AM8/25/15
to jayrock...@googlegroups.com

Comment #2 on issue 36 by azizatif: Add ContentType property to
JsonRpcClient
https://code.google.com/p/jayrock/issues/detail?id=36

This issue has been migrated to:
https://github.com/atifaziz/Jayrock/issues/36
The conversation continues there.
DO NOT post any further comments to the issue tracker on Google Code as it
is shutting down.
You can also just subscribe to the issue on GitHub to receive notifications
of any further development.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages