Commit 814544b
committed
Extract send_and_parse helper method to deduplicate HTTP request handling logic in FacilitatorClient
* Extract common request sending and JSON parsing logic into new send_and_parse() method in r402-http/src/server/facilitator_client.rs
* Refactor post_json() to build request and delegate to send_and_parse() instead of duplicating header/timeout/error handling
* Refactor get_json() to build request and delegate to send_and_parse() instead of duplicating header/timeout/error handling
* Update get1 parent 5b34c21 commit 814544b
1 file changed
+17
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
| 406 | + | |
| 407 | + | |
439 | 408 | | |
440 | 409 | | |
441 | | - | |
442 | | - | |
| 410 | + | |
| 411 | + | |
443 | 412 | | |
444 | 413 | | |
445 | 414 | | |
| |||
450 | 419 | | |
451 | 420 | | |
452 | 421 | | |
453 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
454 | 435 | | |
455 | 436 | | |
456 | 437 | | |
| |||
0 commit comments