padcom / grails-routing

Apache License 2.0
30 stars 31 forks source link

Add requestBodyAndHeaders method to plugin #6

Closed pokerjocke70 closed 12 years ago

pokerjocke70 commented 12 years ago

It would be nice to be able to use the request/response pattern and send headers.

Add a new method to the artifacts: requestMessageAndHeaders

artifact.metaClass.requestMessageAndHeaders = { endpoint,message, headers -> template.requestBodyAndHeaders(endpoint,message, headers) }

padcom commented 12 years ago

Sounds like a good idea. Could you fork the plugin and send me a pull request?

Matthias.

2012/1/8 Joakim Sundqvist < reply@reply.github.com

It would be nice to be able to use the request/response pattern and send headers.

Add a new method: to the artifacts: requestMessageAndHeaders

artifact.metaClass.requestMessageAndHeaders = { endpoint,message, headers -> template.requestBodyAndHeaders(endpoint,message, headers) }


Reply to this email directly or view it on GitHub: https://github.com/padcom/grails-routing/issues/6

padcom commented 12 years ago

Done in release 1.1.6