This repository was archived by the owner on Aug 19, 2026. It is now read-only.
Commit 018602c
Add constructor config options for HTTP client customization
- Curl: Accept array of CURLOPT_* options in constructor
- Swoole: Accept array of client settings in constructor
- Config options are merged with defaults (user config takes precedence)
- Extracted buildClientSettings() helper in Swoole adapter
Example usage:
// Curl with custom SSL options
new Curl([CURLOPT_SSL_VERIFYPEER => false]);
// Swoole with long connections
new Swoole(['keep_alive' => true, 'timeout' => 60]);
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent cbacfea commit 018602c
2 files changed
Lines changed: 54 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
22 | 37 | | |
23 | 38 | | |
24 | 39 | | |
| |||
102 | 117 | | |
103 | 118 | | |
104 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
105 | 123 | | |
106 | 124 | | |
107 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
28 | 43 | | |
29 | 44 | | |
30 | 45 | | |
| |||
123 | 138 | | |
124 | 139 | | |
125 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
126 | 160 | | |
127 | 161 | | |
128 | 162 | | |
| |||
183 | 217 | | |
184 | 218 | | |
185 | 219 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 220 | + | |
191 | 221 | | |
192 | 222 | | |
193 | 223 | | |
| |||
248 | 278 | | |
249 | 279 | | |
250 | 280 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
| 281 | + | |
256 | 282 | | |
257 | 283 | | |
258 | 284 | | |
| |||
0 commit comments