<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>winebarrel</author_name>
  <author_url>https://blog.hatena.ne.jp/winebarrel/</author_url>
  <blog_title>so what</blog_title>
  <blog_url>https://so-wh.at/</blog_url>
  <categories>
    <anon>APACHE</anon>
  </categories>
  <description>static apr_status_t hogehoge_filter(ap_filter_t *f, apr_bucket_brigade *bb) { request_rec *r = f-&gt;r; my_ctx *ctx = f-&gt;ctx; いくつかのフィルタのコードを読んでみると、どうも一回のフィルタの呼び出しではストリームが終わらないことがあるらしい。だから、ステータスをf-&gt;ctxに保持する。ctxはリクエストごとに初期化されるように見える。だから if (!ctx) { 〜 }で存在チェック ctxがなかったら、ctxを生成して、ストリームが始まったものとして処理をする ctxがあ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20080130%2Fp3&quot; title=&quot; フィルタの勉強: フィルタの呼び出しとストリームの終わり - so what&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>2008-01-30 00:00:02</published>
  <title> フィルタの勉強: フィルタの呼び出しとストリームの終わり</title>
  <type>rich</type>
  <url>https://so-wh.at/entry/20080130/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
