Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to Plug

junsumida
August 31, 2016

Introduction to Plug

Elixir Plug入門: tokyo.ex #5 LT

[[References]]

[Programming Phoenix]
https://www.amazon.co.jp/dp/B01KFCXP04

[phoenixframeworkの足回り]
https://speakerdeck.com/hidetakakojo/tokyo-dot-ex-number-1-phoenixframeworkfalsezu-hui-ri

junsumida

August 31, 2016
Tweet

More Decks by junsumida

Other Decks in Technology

Transcript

  1. 7 What is Plug? defmodule MyPlug do import Plug.Conn def

    init(options) do # initialize options options end def call(conn, _opts) do conn |> put_resp_content_type("text/plain") |> send_resp(200, "Hello world") end end