要限制idhttp的速度,必须使用IdInterceptThrottler来做,放一个IdInterceptThrottler和Idhttp组件,设置TIdHTTP的Intercept属性为TIdInterceptThrottler。
TIdInterceptThrottler有三个速度限制的属性:
BitsPerSec:平均速度
RecvBitsPerSec:控制接收速度
SendBitsPerSec:发送的速度
要限制idhttp的速度,必须使用IdInterceptThrottler来做,放一个IdInterceptThrottler和Idhttp组件,设置TIdHTTP的Intercept属性为TIdInterceptThrottler。
TIdInterceptThrottler有三个速度限制的属性:
BitsPerSec:平均速度
RecvBitsPerSec:控制接收速度
SendBitsPerSec:发送的速度