Prepared Http Client PendingRequest
#39934
Unanswered
chu121su12
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
tldr: Similar to query builder that can be passed around before actually
->get()
-ing the result,how to wrap
PendingRequest
so it can be send later? Ex:I have this simplified http handling logic:
There are a few api wtih different try-catch handling, and each api has multiple endpoint with different path, options, method and body format. With
$http
that can be passed around, I thought this can be simplified to a function defined onceOr is there any other way to do similar thing? I have extended this behavior with my own class, but if there are actual use of this logic, I'd like this to be implemented in core.
Beta Was this translation helpful? Give feedback.
All reactions