SecureBlackbox 2020 Python Edition

Questions / Feedback?

on_before_request Event

Fires before a DAV request is processed.

Syntax

class WebDAVServerBeforeRequestEventParams(object):
  @property
  def connection_id() -> int: ...
  @property
  def http_method() -> str: ...
  @property
  def url() -> str: ...
  @property
  def accept() -> bool: ...
  @accept.setter
  def accept(value) -> None: ...

# In class WebDAVServer:
@property
def on_before_request() -> Callable[[WebDAVServerBeforeRequestEventParams], None]: ...
@on_before_request.setter
def on_before_request(event_hook: Callable[[WebDAVServerBeforeRequestEventParams], None]) -> None: ...

Remarks

This event fires before an incoming request is processed. ConnectionID indicates the client's unique connection ID; HTTPMethod specifies the HTTP method being used to submit the request, and URL signifies the object's URL.

Use Accept parameter to accept or reject the request.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Python Edition - Version 20.0 [Build 8154]