summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..7d4acb2
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,11 @@
+#include <assert.h>
+#include <string.h>
+#include <stdio.h>
+
+#include "transport.h"
+
+int main() {
+ struct SizedBlock body = {0};
+ transport_request(GET_ROOT_URL, NULL, NULL, &body);
+ printf("Body fetched: %ld bytes", strlen(body.memory));
+}