Savage1956 / rest-assured

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

Support for custom HTTP methods #185

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
HTTP is an open protocol that gets augmented by several extension 
specifications. One of them, for example, is WebDAV, which brings new methods 
like PROPFIND and SEARCH.

To be able to use REST-assured with any HTTP-based protocol (not only with the 
base protocol's methods), it would be best to have an ".invoke(String)" method 
added to com.jayway.restassured.specification.RequestSende (and an 
implementation of that in RequestSpecificationImpl):

/**
 * Perform a custom request to a <code>path</code>. Normally the path doesn't have to be fully-qualified e.g. you don't need to
 * specify the path as <tt>http://localhost:8080/path</tt>. In this case it's enough to use <tt>/path</tt>.
 *
 * @param methodName The name of the custom HTTP method to invoke.
 * @param path The path to send the request to.
 * @param pathParams The path parameters.
 * @return The response of the request.
 */
Response invoke(String methodName, String path, Map<String, ?> pathParams);

Original issue reported on code.google.com by headcrashing on 10 Aug 2012 at 9:45

GoogleCodeExporter commented 9 years ago
Was already reported: http://code.google.com/p/rest-assured/issues/detail?id=184

Not yet fixed. Please do so, custom extensibility this is an essential HTTP 
feature.

Original comment by mi.koel...@googlemail.com on 3 Sep 2012 at 9:31

GoogleCodeExporter commented 9 years ago
It's fine by me. If someone has the time to implement it I'll include it in the 
next release.

Original comment by johan.ha...@gmail.com on 3 Sep 2012 at 9:36

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 3 Sep 2012 at 9:36