// 非同期ランタイム //> using lib "org.typelevel::cats-effect:3.4.5" // http 関係 // http の基本型など //> using lib "org.http4s::http4s-core:1.0.0-M38" // ルーティング DSL など //> using lib "org.http4s::http4s-dsl:1.0.0-M38" // http サーバー //> using lib "org.http4s::http4s-ember-server:1.0.0-M38" import cats.effect._ import org.http4s.HttpRoutes // Request => F[Response] を表現する型 import com.comcast.ip4s._ // ipv4"0.0.0.0",
![http4s の最小構成:サーバー](https://cdn-ak-scissors.b.st-hatena.com/image/square/b882c0e557ef578346eb92a1a776c6fe2c491b7d/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--y5KkU-LP--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3Ahttp4s%252520%2525E3%252581%2525AE%2525E6%25259C%252580%2525E5%2525B0%25258F%2525E6%2525A7%25258B%2525E6%252588%252590%25253A%2525E3%252582%2525B5%2525E3%252583%2525BC%2525E3%252583%252590%2525E3%252583%2525BC%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3A110416%252Cx_203%252Cy_98%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyL2I5NmI4ODllNWIuanBlZw%3D%3D%252Cr_max%252Cw_90%252Cx_87%252Cy_72%2Fog-base.png)