dave
08/13/2019, 7:49 AMRicardo
08/27/2019, 4:01 PMRicardo
08/28/2019, 1:14 PMx-google-endpoints
extension for OpenAPI: https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-endpointss4nchez
09/03/2019, 6:58 AMdave
09/06/2019, 5:31 AMdave
09/10/2019, 4:38 PMkushalp
09/12/2019, 10:05 AMmain.kt
file if it's useful.kushalp
09/12/2019, 10:57 AMdave
09/17/2019, 12:01 PMdave
09/18/2019, 2:53 PMdave
09/27/2019, 11:24 AMAnil
09/28/2019, 9:59 PM3.179.0
to 3.185.0` Exception in thread "main" java.lang.NoSuchMethodError: java.lang.Class.getPackageName()Ljava/lang/String;
at org.http4k.core.MimeTypes$Companion.loadStandard(MimeTypes.kt:29)
at org.http4k.core.MimeTypes$Companion.access$loadStandard(MimeTypes.kt:12)
at org.http4k.core.MimeTypes$Companion$standardTypes$2.invoke(MimeTypes.kt:16)
at org.http4k.core.MimeTypes$Companion$standardTypes$2.invoke(MimeTypes.kt:12)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at org.http4k.core.MimeTypes$Companion.getStandardTypes(MimeTypes.kt)
at org.http4k.core.MimeTypes$Companion.invoke(MimeTypes.kt:14)
at org.http4k.routing.ResourceLoadingHandler.<init>(internal.kt:24)
at org.http4k.routing.StaticRoutingHttpHandler.<init>(internal.kt:55)
at org.http4k.routing.StaticRoutingHttpHandler.<init>(internal.kt:48)
at org.http4k.routing.RoutingKt.static(routing.kt:57)
at com.johnlewis.recommendations.controller.ApiHandler.invoke(ApiHandler.kt:111)
at com.johnlewis.recommendations.Application.<init>(Application.kt:57)
at com.johnlewis.recommendations.ApplicationKt.main(Application.kt:89)
at com.johnlewis.recommendations.ApplicationKt.main(Application.kt)
This happens for StaticRoutingHandler serving static content.xuemin.guan
09/30/2019, 10:31 AMorg.http4k.client.OkHttp()
use default OkHttp configuration and it seems it is optimized for single user application. 2. the team moved to creating OkHttp with their customized connection pooling configuration but it does not seem to pass their performance testing in some cases.
The team has therefor moved away from OkHttp and started using org.eclipse.jetty.client.HttpClient
.
We thought to use org.eclipse.jetty.client.HttpClient
instead as well given their experience. But thought to seek some recommendation here.dave
10/03/2019, 5:48 AMRazi Kheir
10/04/2019, 7:22 AMRazi Kheir
10/11/2019, 12:36 AMServerFilters.RequestTracing()
.then(ServerFilters.SetContentType(ContentType.APPLICATION_JSON))
.then(logAPIRequestFilter())
.then(ServerFilters.Cors(corsPolicy))
.then(NoCache())
.then(exceptionToErrorResponseFilter())
.then(lensExceptionFilter())
.then(apiHandler)
`
But for some reason cache control headers are not being returned when I curl (both for responses bigger, smaller than 400 (tried also override and writing true, still didn’t return it)joscha.alisch
10/12/2019, 8:08 AMdata class MongoDBSettings(val host: String, val port: Int)
from the environment variables MONGO_HOST
and MONGO_PORT
.
Would I have them as separate `EnvironmentKey`s and do the mapping outside or is there some lens magic where I can do something like EnvironmentKey.mongoSettings().required("MONGO_HOST", "MONGO_PORT")
?Razi Kheir
10/16/2019, 8:19 AMBody.auto<RequestBody>().toLens()
Once as a constant and use it inside of other methods?
Or write it inside of a method?
I guess what i’m asking if it will be recreated every time in the method with no reason :xRazi Kheir
10/17/2019, 8:44 AMAnil
10/17/2019, 1:35 PMRazi Kheir
10/21/2019, 5:54 AMRichyHBM
10/21/2019, 10:45 AMkushalp
10/21/2019, 3:34 PMRichyHBM
10/22/2019, 10:40 AMLuis Mirabal
10/27/2019, 4:35 PMserver.start()
? so that a connection to a message broker can be established on start, other than implementing the Http4kServer
interface myselfdave
10/28/2019, 6:02 AMdave
10/28/2019, 6:05 AMUberto Barbini
10/29/2019, 8:59 AMRazi Kheir
11/07/2019, 3:15 AMdave
11/21/2019, 6:28 AMHealth
into your main routes definition block.