Module cloudi_service_http_cowboy

CloudI HTTP Integration

Uses the cowboy Erlang HTTP Server.

Copyright © 2012-2014 Michael Truog

Version: 1.3.3 Sep 30 2014 14:21:46 ------------------------------------------------------------------------

Behaviours: cloudi_service.

Authors: Michael Truog (mjtruog [at] gmail (dot) com).

Description

CloudI HTTP Integration

Uses the cowboy Erlang HTTP Server.

Function Index

close/1

Close a cowboy handler socket pid which represents a live connection.

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

Function Details

close/1

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

Close a cowboy handler socket pid which represents a live 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, X3) -> any()

cloudi_service_handle_request/11

cloudi_service_handle_request(Type, Name, Pattern, RequestInfo, Request, Timeout, Priority, TransId, Pid, State, Dispatcher) -> any()

cloudi_service_init/3

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

cloudi_service_terminate/2

cloudi_service_terminate(X1, State) -> any()


Generated by EDoc, Sep 30 2014, 14:21:46.