Module cloudi_service_http_cowboy1

CloudI HTTP Integration

Uses the cowboy1 Erlang HTTP Server.

Copyright © 2012-2021 Michael Truog

Version: 2.0.2 Dec 3 2021 22:34:00 ------------------------------------------------------------------------

Behaviours: cloudi_service.

Authors: Michael Truog (mjtruog at protonmail dot com).

Description

CloudI HTTP Integration

Uses the cowboy1 Erlang HTTP Server.

Function Index

close/1

Close a cowboy1 websocket connection.

Use the Pid from cloudi_service_handle_request/11.
cloudi_service_handle_info/3
cloudi_service_init/4
cloudi_service_terminate/3

Function Details

close/1

close(Pid::pid() | {string(), pid()}) -> ok

Close a cowboy1 websocket connection.

Use the Pid from cloudi_service_handle_request/11. Otherwise, you can use either the get_pid function or get_pids function in the cloudi module (or the cloudi_service module) to find a match for the connection URL.

cloudi_service_handle_info/3

cloudi_service_handle_info(Request, State, Dispatcher) -> any()

cloudi_service_init/4

cloudi_service_init(Args, Prefix, Timeout, Dispatcher) -> any()

cloudi_service_terminate/3

cloudi_service_terminate(Reason, Timeout, State) -> any()


Generated by EDoc