yusing
714826213f
fix(middleware): skip modification for HEAD requests in ModifyHTML middleware
2025-12-05 16:24:43 +08:00
yusing
ca737c8979
fix(modify-html): re-enable modifying HTML with chunked encoding
2025-10-31 17:30:23 +08:00
yusing
d4dfec8293
refactor(http): proper ResponseWriter and headers handling across files
2025-10-28 14:43:10 +08:00
yusing
5e00e1c437
fix(middleware): correct and simplify HTML modification / buffer management logic, correct Accept-Encoding header
2025-10-27 15:08:29 +08:00
yusing
baf774f927
fix(middleware): properly release buffer on error and not to reuse content for bytes.Buffer
2025-10-26 23:16:38 +08:00
yusing
f8716d990e
perf(pool): split bytes pool into tiered sized and unsized pools
...
- Remove BytesPoolWithMemory; split into UnsizedBytesPool and 11-tier SizedBytesPool
- Track buffer capacities with xsync Map to prevent capacity leaks
- Improve buffer reuse: split large buffers and put remainders back in pool
- Optimize small buffers to use unsized pool
- Expand test coverage and benchmarks for various allocation sizes
2025-10-18 17:38:01 +08:00
yusing
c66de99fcb
perf: further optimize http and body buffer handling
2025-10-12 20:57:51 +08:00
yusing
2a05c6a630
refactor: move websocket package and some http utils to seperate repo
2025-09-27 14:16:42 +08:00
yusing
22bcf1201b
refactor: move some io, http and string utils to separate repo
2025-09-27 12:46:41 +08:00
yusing
f9affba9fc
refactor(modules): replace github.com/yusing/go-proxy with github.com/yusing/godoxy
2025-09-22 16:44:59 +08:00
yusing
4513c221d5
refactor(modifyhtml): improved memory manangement and response body handling
2025-09-02 22:55:24 +08:00
yusing
b051987a1c
refactor: apply renamed NewBytesPool with GetBytesPool
2025-09-02 22:50:57 +08:00
yusing
46c7ee4d84
feat(middleware): optimize HTML modification with byte pool
2025-07-20 12:47:32 +08:00
yusing
b6bfd19cc2
fix(middleware): set Accept-Encoding to "" in modify_html middleware
2025-07-13 15:42:39 +08:00
yusing
a954ac8946
feat(middleware): introduct modify_html middleware
2025-07-13 14:01:36 +08:00