Phoenix.Endpoint.Handler

Phoenix.Endpoint.Handler behaviour

API for exporting a webserver.

A handler will need to implement a child_spec/3 function which takes:

  • the scheme of the endpoint :http or :https
  • phoenix top-most endpoint module
  • phoenix app configuration for the specified scheme

it has to return a child_spec.

Summary

Callbacks

child_spec(scheme, endpoint, config)

Provides the children specification to be passed to Phoenix.Endpoint.Server supervisor

Callbacks

child_spec(scheme, endpoint, config)

Specs

child_spec(scheme :: atom, endpoint :: module, config :: Keyword.t) :: Supervisor.Spec.spec

Provides the children specification to be passed to Phoenix.Endpoint.Server supervisor.

© 2014 Chris McCord
Licensed under the MIT License.
https://hexdocs.pm/phoenix/Phoenix.Endpoint.Handler.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部