All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala-http4s.responseState.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
{{#hasOnlyDefaultResponse}}{{#responses.0}}{{#dataType}}r => parseJson[F, {{>operationReturnType}}]("{{>operationReturnType}}", r){{/dataType}}{{^dataType}}r => Concurrent[F].pure(()){{/dataType}}{{/responses.0}}{{/hasOnlyDefaultResponse}}{{^hasOnlyDefaultResponse}}{{#responses}}{{#is2xx}}
        {{>successResponsePart}}{{/is2xx}}{{^is2xx}}{{#is3xx}}
        {{>successResponsePart}}{{/is3xx}}{{^is3xx}}{{^isDefault}}
        {{>errorResponsePart}}{{/isDefault}}{{#isDefault}}
        {{#dataType}}case r => parseJson[F, {{dataType}}]("{{dataType}}", r).flatMap(res => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason, Some(res.asJson)))){{/dataType}}{{^dataType}}case r => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)){{/dataType}}{{/isDefault}}{{/is3xx}}{{/is2xx}}{{/responses}}{{/hasOnlyDefaultResponse}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy