bytedance / g3

Enterprise-oriented Generic Proxy Solutions
Apache License 2.0
464 stars 34 forks source link

Feature Request: Limit Maximum Bytes per Request #293

Open NinoSkopac opened 2 months ago

NinoSkopac commented 2 months ago

I would like to request a feature that allows setting a limit on the maximum number of bytes per request. For example, if the limit is set to 100MB, users will only be able to download files that are 100MB or smaller. Users can download multiple files, but each file must individually be within the specified 100MB limit.

zh-jq-b commented 2 months ago

It is ok to add a size limit to HTTP body. But it won't work for HTTP CONNECT / socks5 tunnel connections.

NinoSkopac commented 2 months ago

Understood.

In that case, I'd much rather prefer #294, as that's a complete solution.

This could still be helpful - I'll leave it to your discretion.

Thank you Mr. Jingqiang.