Feature: get the encoded data ready for sending (for async interop)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reading pywebpush.WebPusher and the functions that currently accept curl=True, focusing on how the push request is encoded and sent. Define an official way to return the endpoint, encoded data, and headers so callers can use another HTTP library, then verify that existing sending behavior remains intact.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello,
It would be nice to be able to just get the encoded push request so we could use another http library for sending the request. Our motivation is to do this in an async framework, but there could be others.
Now we do this by monkeypatching the library:
import pywebpush
pywebpush.WebPusher.as_curl = lambda self, endpoint, data, headers: {'endpoint': endpoint, 'data': data, 'headers': headers}
then we can just pass curl=True to any function and get the data we want. But it would be nicer to do this in an official way.
- Ngôn ngữ chính
- Python
- Star
- 380
- Fork
- 61
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của web-push-libs/pywebpush
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
web-push-libs/pywebpush#190 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
web-push-libs/pywebpush#175 · 3 bình luận ·
-
Async Send FunctionĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
web-push-libs/pywebpush#150 · 1 bình luận · 4 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
web-push-libs/pywebpush#149 · 4 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
web-push-libs/pywebpush#147 · 8 bình luận ·
Tất cả issue của web-push-libs/pywebpush
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nansencenter/geodataset#39 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
awslabs/visual-asset-management-system#804 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[18.0] werkzeug: AttributeErrorĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
odoo/odoo#297927 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
link-rot
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100