In @tuleap/fetch-result
, we have added several functions to deal with cases where we do not immediately decode JSON from the server response. Sometimes, the server responds with nothing in the body. Sometimes, we need to compute something based on the headers of the Response.
We should add a similar function for the GET verb. We should also suffix those functions with *Response
: getResponse
, putResponse
, patchResponse
, postResponse
to help distinguish them from the other getJSON
, postJSON
functions.