Kotta commited on
Commit ·
a3516a2
1
Parent(s): 13c410c
feature(#8): add comment in client_info to manage user_agent to validiate device and its browser
Browse files
src/model/requests/request_model.py
CHANGED
|
@@ -4,6 +4,8 @@ from pydantic import BaseModel
|
|
| 4 |
from fastapi import Depends, Request, HTTPException
|
| 5 |
from user_agents import parse
|
| 6 |
|
|
|
|
|
|
|
| 7 |
|
| 8 |
class ClientInfo:
|
| 9 |
def __init__(self, browser, os, device_type):
|
|
|
|
| 4 |
from fastapi import Depends, Request, HTTPException
|
| 5 |
from user_agents import parse
|
| 6 |
|
| 7 |
+
"""user-agent management"""
|
| 8 |
+
|
| 9 |
|
| 10 |
class ClientInfo:
|
| 11 |
def __init__(self, browser, os, device_type):
|