Class: EventMachine::Smsified::Server
- Inherits:
-
EM::Connection
- Object
- EM::Connection
- EventMachine::Smsified::Server
- Includes:
- EM::HttpServer, ServerHandler
- Defined in:
- lib/em-smsified/server.rb
Overview
Allows you to set up a server for incoming SMSified callbacks.
Instance Method Summary collapse
- #post_init ⇒ Object
-
#process_http_request ⇒ Object
Does processing of incoming HTTP requests.
Methods included from ServerHandler
#handle, #on_delivery_notification, #on_incoming_message, #on_unknown, #trigger_on_delivery_notification, #trigger_on_incoming_message, #trigger_on_unknown
Instance Method Details
#post_init ⇒ Object
93 94 95 96 |
# File 'lib/em-smsified/server.rb', line 93 def post_init super no_environment_strings end |
#process_http_request ⇒ Object
Does processing of incoming HTTP requests.
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/em-smsified/server.rb', line 101 def process_http_request # the http request details are available via the following instance variables: # @http_protocol # @http_request_method # @http_cookie # @http_if_none_match # @http_content_type # @http_path_info # @http_request_uri # @http_query_string # @http_post_content # @http_headers handle(@http_request_method, @http_post_content) send_ok() end |