Campoie / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Add support for registering custom encoders #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is important to support extensibilty. We need a way to supply custom 
encoders to the encoder registry.

Original issue reported on code.google.com by johan.ha...@gmail.com on 4 Sep 2011 at 8:29

GoogleCodeExporter commented 9 years ago
It should also be possible to register that a specific content-type should be 
encoded using a pre-defined encoder. E.g. 

registerEncoder("contentType", Encoder.XML);

Original comment by johan.ha...@gmail.com on 21 Feb 2012 at 7:14

GoogleCodeExporter commented 9 years ago
Also support setting a default encoder

Original comment by johan.ha...@gmail.com on 21 Feb 2012 at 7:15

GoogleCodeExporter commented 9 years ago
Also support registering a different encoder for a content-type:

registerEncoder(ContentType.XML, Encoder.JSON);

Original comment by johan.ha...@gmail.com on 21 Feb 2012 at 7:16

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 21 Feb 2012 at 7:18

GoogleCodeExporter commented 9 years ago
Also, could the default default-encoder just copy the bytes given?

Original comment by phas...@gmail.com on 22 Feb 2012 at 12:03

GoogleCodeExporter commented 9 years ago
Yes that sounds quite reasonable :)

The reason for for the default is form encoding is because the code originates 
from HTTP Builder. I'll work on it for the next release.

Original comment by johan.ha...@gmail.com on 22 Feb 2012 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 13 Nov 2013 at 11:18