bootme-request
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -27,2 +27,6 @@ 'use strict' | ||
.required(), | ||
contentType: Joi.string() | ||
.lowercase() | ||
.allow(['text', 'json', 'response']) | ||
.default('json'), | ||
url: Joi.string() | ||
@@ -59,3 +63,3 @@ .uri() | ||
) | ||
return result | ||
return result[this.config.contentType] | ||
} | ||
@@ -62,0 +66,0 @@ } |
{ | ||
"name": "bootme-request", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Task to fire a HTTP Request", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,2 +11,3 @@ # bootme-request | ||
method: 'GET', | ||
contentType: 'json', | ||
url: 'http://api.open-notify.org/iss-now.json' | ||
@@ -19,2 +20,2 @@ }) | ||
- Instance of R2 (**[R2](https://github.com/mikeal/r2)**) | ||
- Based on the `contentType` property. |
2213
63
20