<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>griefworker</author_name>
  <author_url>https://blog.hatena.ne.jp/griefworker/</author_url>
  <blog_title>present</blog_title>
  <blog_url>https://tnakamura.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>.NET</anon>
  </categories>
  <description>自前でリバースプロクシを実装するのに使っていた ProxyKit が開発終了し、他のライブラリに移行しなければいけなくなった。筆頭候補は、1.0.0 に到達した Microsoft 製の YARP。 github.com そもそも、IIS や Nginx を使わず、ProxyKit を使って自前でリバースプロクシを実装していたのは、HTTP リクエストヘッダーとデータベースを参照して、動的に転送先を決定する要件があったからだ。 YARP で動的に転送先を決定できるか調べてみた。結論を言えば、IHttpForwarder を使うことで実現可能。 using System; using Syste…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F2021%2F12%2F24%2Fyarp&quot; title=&quot;YARP で動的に転送先を決定する方法 - present&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>2021-12-24 18:00:00</published>
  <title>YARP で動的に転送先を決定する方法</title>
  <type>rich</type>
  <url>https://tnakamura.hatenablog.com/entry/2021/12/24/yarp</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
