Skip to content
#

response

Here are 341 public repositories matching this topic...

jethmalani
jethmalani commented Nov 14, 2017

What did you do?

When I do this (from your docs):

guard let dataFromString = text.data(using: .utf8, allowLossyConversion: false) else {return} let json = JSON(data: dataFromString)

I get an error "Call can throw, but it is not marked with 'try' and the error is not handled"

I did this. I just want to confirm that is right. It worked for me.

`guard let dataFromString

Cortex
milesflo
milesflo commented Feb 5, 2020

Include Dockerfile in root of project

Request Type

Feature Request

Description

As part of the development and release cycle, please include the Dockerfile generated by docker.sbt in the root of the project so that the container can be built directly from the repo itself.

jamesplease
jamesplease commented Feb 5, 2018

Holen's default type is "json", which works for most API endpoints. However, a very common feature of APIs is the useful 204 No Content response. This is typically returned from write requests (deletes, updates, and less commonly, creates). The response body in these situations is an empty string, and trying to parse an empty string as JSON throws an error:

JSON.parse('');
// > Un

Improve this page

Add a description, image, and links to the response topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the response topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.