chaostoolkit / chaostoolkit-documentation

The Chaos Toolkit documentation

Home Page:https://chaostoolkit.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistency in HTTP Provider specification

benpankow opened this issue · comments

The specification for the HTTP provider states that

The HTTP provider MUST return an object with the following properties:
status which MUST be a valid HTTP returned code as defined in RFC 7231
headers which MUST be an object
body which MUST be a string

However, in the case that the HTTP response has the Content-Type of application/json, the toolkit lib returns a JSON object as the body.

Hey @benpankow you are right. I think the spec ought to be amended to support the actual implemented use case IMO. Makes it more convenient.