Closed yusukebe closed 2 years ago
I really want to help on the "Logger" middleware task, would you describe a little more on it?
Hey @metrue
Thank you for your proposal, but API design for middleware is obscure. I'm still thinking about it. Please wait a moment!
Hi @yusukebe
I can help on the "Basic Auth" if you're not working on it now
Hi @metrue Thank you! I want you help on writing the "Basic Auth". But now, I'm rewriting the code to migrate from JavaScript to TypeScript (Yes, TypeScript!!) If you can, please wait a moment writing the code. If it is done, I will mention to you.
Hi @metrue Migrating to TypeScript is done! If you want, please write the code of Basic Auth middleware.
@yusukebe yeah, PR is on the way 👨🏻💻
And I think it'd be great we setup a lint script for the codes to enforce a consistent code style.
Hi @yusukebe
About how to test
topic, could you share a little more about it? it's about document or it's about Hono's test-ability? or you already got some ideas? Maybe we can create another issue to track it?
@metrue It's not so important. I forgot meaning of the topic:( Please ignore.
For the middleware 'X-Response-Time', the logger middleware already included the response time information. https://github.com/yusukebe/hono/blob/master/src/middleware/logger/logger.ts#L70
@metrue Yes. I think it's not necessary. We don't need to implement it.
Almost done!! To be continue ... => #68
Template project of Cloudflare WorkersLatermime-typeany
all
Try on Deno deployReturn method not allowedbase pathTypeScriptmakeJSDocd.ts
mimifyLaterSSR with assetKVredirectc.respond`app.use(router.routes());
edge-mock
#18Configc.json()
files
field in package.jsonRender HTML with template engineUse JSX SSRMore practical examplec.redirect
#36usec.notFound
c.text('not found', 404)
c.json({}, 200, {'x-custom-header': 'value'})
#34FetchEvent
instance asc.req.event
c.notFound()
?const res = c.text('a'); res.headers.set()
is good way? #62Middleware
X-Response-Time