<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>f_syumai</author_name>
  <author_url>https://blog.hatena.ne.jp/f_syumai/</author_url>
  <blog_title>焼売飯店</blog_title>
  <blog_url>https://blog.syum.ai/</blog_url>
  <categories>
  </categories>
  <description>この記事はHono Advent Calendar 2025の2日目の記事です。 はじめに 皆さんはHonoのMiddlewareを書いたことがありますか？ HonoのドキュメントのCustom Middlewareから引用しますが、HonoのMiddlewareは非常にシンプルな仕組みで、以下のように app.use() に渡したコールバック関数内の、 await next() 呼び出しの前後でContextに対して処理を行うことができます。 // Custom logger app.use(async (c, next) =&gt; { console.log(`[${c.req.method}…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.syum.ai%2Fentry%2F2025%2F12%2F03%2F024220&quot; title=&quot;hono-middleware-goのご紹介 - 焼売飯店&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-03 02:42:20</published>
  <title>hono-middleware-goのご紹介</title>
  <type>rich</type>
  <url>https://blog.syum.ai/entry/2025/12/03/024220</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
