Skip to content

Commit 851e59b

Browse files
committed
docs: update README.md, and supplement CHANGELOG.md for pull #10
1 parent 195d071 commit 851e59b

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626

2727
- [#10](https://github.com/WSH032/fastapi-proxy-lib/pull/10) - fix security vulnerabilities of cookies leakage between different users. Thanks [@WSH032](https://github.com/WSH032)!
2828

29+
### Removed
30+
31+
- [#10](https://github.com/WSH032/fastapi-proxy-lib/pull/10) - Remove support for setting cookies at the `AsyncClient` level. Thanks [@WSH032](https://github.com/WSH032)!
32+
2933
## [0.0.1b0] - 2023-11-27 [YANKED]
3034

3135
!!! danger

CONTRIBUTING.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,15 @@ hatch version {new_version}
172172

173173
It will create a commit and tag automatically, then, push the **tag** to GitHub.
174174

175-
After that, the `publish.yml` workflow will build and publish the package to PyPI.
175+
!!! warning
176+
You should tag in another branch, then rebase it to `main` branch **in local**.<br>
177+
**DO NOT rebase with tag in GitHub**, refer to <https://docs.github.com/zh/authentication/managing-commit-signature-verification/about-commit-signature-verification#signature-verification-for-rebase-and-merge>
178+
179+
Check if everything is ok, for example, **check if the tag is on the `main` branch**.
176180

177-
> Don't forget to make a `approve` in environment `pypi` for the workflow.
181+
If so, make a `approve` in environment `pypi` for the workflow.
182+
183+
After that, the `publish.yml` workflow will build and publish the package to PyPI.
178184

179185
Finally, edit the `draft release` created by `publish.yml` workflow, and publish the release.
180186

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Source Code: <https://github.com/WSH032/fastapi-proxy-lib/>
3131
- [x] Supports all HTTP methods (`GET`, `POST`, etc.)
3232
- [x] Support both **reverse** proxy and **forward** proxy.
3333
- [x] **Transparently** and **losslessly** handle all proxy requests,
34+
Including **HTTP headers**, **cookies**, **query parameters**, **body**, etc.
3435
- [x] Asynchronous streaming transfer, support **file proxy**.
3536

3637
### other features
@@ -39,6 +40,8 @@ Source Code: <https://github.com/WSH032/fastapi-proxy-lib/>
3940
- [x] **100%** [Type Completeness](https://microsoft.github.io/pyright/#/typed-libraries?id=type-completeness), [Code coverage of **over 95%**][codecov#link].
4041
- [x] Forced keep-alive connections, minimizing proxy latency.
4142
- [x] Handle errors as gracefully as possible.
43+
- `fastapi-proxy-lib` has a well-designed mechanism behind the scenes to handle exceptional websocket disconnections for you.
44+
- `fastapi-proxy-lib` will exit as gracefully as possible.
4245

4346
### `FastAPI Proxy Lib` stands on the shoulders of giants
4447

@@ -47,14 +50,17 @@ Source Code: <https://github.com/WSH032/fastapi-proxy-lib/>
4750

4851
So, it perfectly supports all features of [httpx.AsyncClient](https://www.python-httpx.org/advanced/#client-instances), you can even use your custom `AsyncClient`, [`Transport`](https://www.python-httpx.org/advanced/#custom-transports).
4952

53+
> except `cookies` and `base_url` arguments, which are taken over by `fastapi-proxy-lib`
54+
5055
## Installation
5156

5257
> !!! note
5358
>
5459
> We follow semantic versioning.<br>
5560
> This is a young project, and before 1.0.0, there may be changes in the API (we try to avoid that).<br>
5661
> We will release security updates at any time, please try to keep the version updated, instead of pinning to the old version.<br>
57-
> pin to `major version` is recommended.
62+
> pin to `major version` is recommended.<br>
63+
> visit our `CHANGELOG.md` for more info.
5864
5965
```shell
6066
pip install fastapi-proxy-lib

0 commit comments

Comments
 (0)