Class: SockJS::Transports::XHRSendPost
- Inherits:
-
DeliveryTransport
- Object
- Endpoint
- SessionEndpoint
- SockJS::Transport
- DeliveryTransport
- SockJS::Transports::XHRSendPost
- Defined in:
- lib/sockjs/transports/xhr.rb
Instance Attribute Summary
Attributes inherited from Endpoint
#connection, #http_origin, #options, #remote_addr
Attributes included from Endpoint::ClassMethods
Instance Method Summary collapse
Methods inherited from DeliveryTransport
#extract_message, #get_session, #process_session, #successful_response
Methods inherited from SockJS::Transport
#exception_response, #handle_request, #handle_session_unavailable, #request_data, #response_beginning, #server_key, #session_key
Methods inherited from SessionEndpoint
Methods inherited from Endpoint
#build_error_response, #build_response, #call, #empty_string, #error_content_type, #format_frame, #handle, #handle_http_error, #handle_request, #initialize, #inspect, #response_class
Methods included from Endpoint::ClassMethods
#add_route, #add_routes, #endpoints, #register, #route_conditions, #routing_prefix
Constructor Details
This class inherits a constructor from SockJS::Endpoint
Instance Method Details
#setup_response(request, response) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/sockjs/transports/xhr.rb', line 30 def setup_response(request, response) response.status = 204 response.set_content_type(:plain) response.set_access_control(request.origin) response.set_session_id(request.session_id) response end |