Skip to content

HttpHaiku: perform one shot requests

Tambapps edited this page Jul 11, 2022 · 2 revisions

HttpHaiku allows you to perform quickly one-shot requests, without having the need to instantiate an HttpPoet. You can still use the same parameters you would use when using a Poem

Examples

Get an url

def todos = HttpHaiku.get("$API_URL/todos", [author: 'someone@gmail.com'])

Post data

HttpHaiku.post("$API_URL/todos", contentType: ContentType.JSON, body: newPost)
Clone this wiki locally