mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
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:
+1
-1
Submodule crt/aws-crt-ffi updated: 6fca88358a...105be1d1ce
+3
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user