Module cloudi_service_http_cowboy

CloudI HTTP Integration

Uses the cowboy Erlang HTTP Server.

Copyright © 2012-2022 Michael Truog

Version: 2.0.5 Oct 11 2022 22:20:32 ------------------------------------------------------------------------

Behaviours: cloudi_service.

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

Description

CloudI HTTP Integration

Uses the cowboy Erlang HTTP Server.

Function Index

close/1

Close a cowboy 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 cowboy 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