Skip to content
#

hapi

Here are 620 public repositories matching this topic...

JKHeadley
JKHeadley commented Jul 21, 2018

See: https://gist.github.com/ericelliott/f3c2a53a1d4100539f71

Advantages

See: https://medium.com/javascript-scene/you-might-not-need-typescript-or-static-types-aa7cb670a77b

  • autocomplete and type inference with most IDEs
  • doesn't require passing Log objects for every call (although it's encouraged)
  • other non-required parameters (such as query) can be omitted
  • much easier to a
crobby
crobby commented May 30, 2019

After running the steps in the README to generate the sample petstore app, I run 'npm test' against it. I get several 501 errors, which are expected in this case since I have not yet added the handlers, but the tests for "addPet post operation" is failing with 400 (bad request). I would expect that to also fail in the same way as the others. It appears that the request is not even making it in

bompus
bompus commented Aug 8, 2017

While using uws yields some good performance benefits, trying to actually use it results in some issues.

The first issue I came across, is a fairly important one. Trying to add response headers in both Express and Koa do nothing. All that comes back is the Content-length header, nothing else.

const http = require("uws").http;
// const http = require("http");

Koa:
ctx.set("Cache-Control"

Improve this page

Add a description, image, and links to the hapi 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 hapi topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.