Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

No way to inject custom requests.Session (Django application)

Đang mở
#3 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Start by reading the Client setup and request implementation in the SDK to find how HTTP sessions are created and used. Add a way to pass a configured requests.Session so the example can reuse it for connection pooling and retries; done means a custom session is accepted and used for requests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

good first issue
No way to inject custom requests.Session (Django application)

Description
In Django projects, it's common to reuse a configured requests.Session, but the SDK does not allow it.

Code snippet

import requests
from openapi_sdk import Client

session = requests.Session()
session.headers.update({"User-Agent": "my-app"})

client = Client("token")
response = client.request("GET", base_url, "/advance", params={})

Issue
Cannot pass custom session for connection pooling and retries.

Ngôn ngữ chính
Python
Star
18
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openapi/openapi-python-sdk

Tất cả issue của openapi/openapi-python-sdk

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.