Updated to aws-crt-ffi v0.1.6, updated http API (#39)

* Updated to aws-crt-ffi v0.1.6, updated http API

* clang-format
This commit is contained in:
Justin Boswell
2021-07-08 12:57:07 -04:00
committed by GitHub
parent 1feba3eb6a
commit 3f77a01fbf
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -21,11 +21,9 @@ PHP_FUNCTION(aws_crt_http_message_to_blob) {
aws_php_parse_parameters("l", &php_msg);
aws_crt_http_message *message = (void *)php_msg;
uint8_t *blob = NULL;
size_t blob_len = 0;
aws_crt_http_message_to_blob(message, &blob, &blob_len);
RETURN_STRINGL((const char *)blob, blob_len);
aws_crt_mem_release(blob);
aws_crt_buf blob;
aws_crt_http_message_to_blob(message, &blob);
RETURN_STRINGL((const char *)blob.blob, blob.length);
}
PHP_FUNCTION(aws_crt_http_message_release) {