File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,8 +167,11 @@ curl "http://localhost:57574/?form=base64&url=$URL_B64&headers=$HEADER_B64&auth=
167167
168168### 5. 自定义分片大小
169169``` bash
170- # 设置每个分片为256KB
170+ # 设置每个分片为256KB(带单位)
171171curl " http://localhost:57574/?url=https://example.com/file.zip&size=256K&auth=drpys"
172+
173+ # 设置每个分片为512KB(纯数字默认单位为KB)
174+ curl " http://localhost:57574/?url=https://example.com/file.zip&size=512&auth=drpys"
172175```
173176
174177## 项目架构
@@ -232,10 +235,10 @@ headers和url可进行base64编码,以避免sni阻断
232235 </thead >
233236 <tbody >
234237 <tr>
235- <td style="text-align:center;">size</td>
238+ <td style="text-align:center;">size/chunkSize </td>
236239 <td style="text-align:center;">可选</td>
237- <td style="text-align:center;">单线程下载数据大小,可动态调节 </td>
238- <td style="text-align:center;">128K,线程数小于4时,为 2048/线程数 K </td>
240+ <td style="text-align:center;">单次分片下载数据大小。<br>支持单位(K/M/B),纯数字默认单位为KB。<br>系统限制:最小32KB,最大10MB。 </td>
241+ <td style="text-align:center;">128KB </td>
239242 </tr>
240243 <tr>
241244 <td style="text-align:center;">thread</td>
Original file line number Diff line number Diff line change 1- 4ac3e305d164a75e5af3e634268afc1f
1+ 198c66eaf2db6ed7a38ab13f9a4e6c70
You can’t perform that action at this time.
0 commit comments