Created
October 6, 2022 02:57
-
-
Save sfboss/c32523fdb98e21e76dd5d66a2419e69d to your computer and use it in GitHub Desktop.
HttpReq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Http httpObject = new Http(); | |
| HttpRequest request = new HttpRequest(); | |
| request.setEndpoint('http://fakeendpoint.com'); | |
| request.setHeader('Content-Type', 'application/json'); | |
| request.setMethod('POST'); | |
| HttpResponse response = httpObject.send(request); | |
| String responseBody = response.getBody(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment