<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zehnpaard</author_name>
  <author_url>https://blog.hatena.ne.jp/zehnpaard/</author_url>
  <blog_title>Arantium Maestum</blog_title>
  <blog_url>https://zehnpaard.hatenablog.com/</blog_url>
  <categories>
    <anon>Clojure</anon>
    <anon>Ring</anon>
    <anon>Web</anon>
  </categories>
  <description>いろんなresponseの作成を助ける関数群のring.util.responseを少し使ってみる。 gist.github.com 前回handlerと読んでいた関数をplain-textと改名し、それに加えてhtmlを返すhtml関数、404を返すnot-found関数、そしてhttp://www.google.comにリダイレクトするredirect関数を定義した。 html関数： (defn html [req] (-&gt; (res/response &quot;&lt;div&gt; &lt;h1&gt;Hello World!&lt;/h1&gt; &lt;p&gt;Some random bit of text&lt;/p&gt; &lt;/div&gt;&quot;) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2016%2F10%2F27%2F232808&quot; title=&quot;Clojure Web Development勉強 - Ring （その３） ResponseとHandler - Arantium Maestum&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>2016-10-27 23:28:08</published>
  <title>Clojure Web Development勉強 - Ring （その３） ResponseとHandler</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2016/10/27/232808</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
