Lines Matching refs:request
34 function is called to handle WebSocket request.
85 def __init__(self, request=None):
88 if request is not None:
89 self._log_error = request.log_error
116 # TODO(tyoshino): Provide logging methods on request object. When
117 # request is mp_request object (when used together with Apache), the
118 # methods call request.log_error indirectly. When request is
181 def headerparserhandler(request):
182 """Handle request.
185 request: mod_python request.
193 # Fallback to default http handler for request paths for which
194 # we don't have request handlers.
195 if not _dispatcher.get_handler_suite(request.uri):
196 request.log_error(
197 'mod_pywebsocket: No handler for resource: %r' % request.uri,
199 request.log_error(
203 request.log_error(
217 request, _dispatcher, allowDraft75=allow_draft75)
219 request.log_error(
222 request.err_headers_out.add(common.SEC_WEBSOCKET_VERSION_HEADER,
228 request.log_error(
234 request._dispatcher = _dispatcher
235 _dispatcher.transfer_data(request)
237 request.log_error('mod_pywebsocket: Aborted: %s' % e, apache.APLOG_INFO)
242 request.log_error('mod_pywebsocket: Exception occurred: %s\n%s' %
246 # request with another handler.
250 request.assbackwards = 1