Loading
A beginner-friendly guide to the HTTP functions in BDFD
Making calls to APIs
Metadata for requests & responses
Handle what APIs return
$httpGet
Requests data from an API
$httpPost
Sends data to an API
$httpPut
Updates an existing resource on an API
$httpPatch
Partially updates an existing resource on an API
$httpDelete
Deletes a resource from an API
$httpAddHeader
Adds a custom header to your HTTP request
$httpRemoveHeader
Removes a header from your HTTP request
$httpGetHeader
Gets a specific header from the response
$httpResult
Gets the data returned by your HTTP request
$httpStatus
Gets the HTTP status code of the response
If you're completely new, start with these two functions: