diff --git a/library/http/test/main.wave b/library/http/test/main.wave index 0e98455..2678447 100644 --- a/library/http/test/main.wave +++ b/library/http/test/main.wave @@ -1,2 +1,12 @@ import("http"); +fun main() { + var response = send_get("https://example.com"); + println("GET Request Status Code: {}", response.status_code); + println("GET Request Body: {}", response.body); + + var post_body = "{ \"name\": \"Wave\", \"type\": \"library\" }"; + var post_response = send_post("https://expample.com/api", post_body); + println("POST Request Status Code: {}", post_response.status_code); + println("POST Request Body: {}", post_response.body); +} \ No newline at end of file