mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-11-23 15:22:30 +00:00
add healthcheck
This commit is contained in:
1 parent
00e443a5eb
commit
c366ce7db6
5 files changed
+52
-100
No files matched your search
@@ -4,13 +4,13 @@ import time
|
||||
from http import HTTPStatus
|
||||
from typing import Any
|
||||
|
||||
from pydantic import BaseModel
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class LinkRequest(BaseModel):
|
||||
cmd: str
|
||||
cmd: str = "get"
|
||||
url: str
|
||||
maxTimeout: int # noqa: N815 # Ignore to preserve compatibility
|
||||
max_timeout: int = Field(30, alias="maxTimeout")
|
||||
|
||||
|
||||
class ProtectionTriggeredError(Exception):
|
||||
|
||||
Reference in new issue
Block a user