summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-crt-php/ext/http.c
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-20 16:44:35 +0300
committerAndrew Dolgov <[email protected]>2023-10-20 16:44:35 +0300
commit8bec661288b276c98bdb0e773e5f4d5275dc4c87 (patch)
tree8617ebe581c62fc46a7881aa61801ebce9d3c603 /vendor/aws/aws-crt-php/ext/http.c
parent540438c2eb5452bacad30c247906bfa287f2da1d (diff)
update AWK SDKHEADmaster
Diffstat (limited to 'vendor/aws/aws-crt-php/ext/http.c')
-rw-r--r--vendor/aws/aws-crt-php/ext/http.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/aws/aws-crt-php/ext/http.c b/vendor/aws/aws-crt-php/ext/http.c
deleted file mode 100644
index 3f429ae..0000000
--- a/vendor/aws/aws-crt-php/ext/http.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
- * SPDX-License-Identifier: Apache-2.0.
- */
-
-#include "php_aws_crt.h"
-
-PHP_FUNCTION(aws_crt_http_message_new_from_blob) {
- const char *blob = NULL;
- size_t blob_len = 0;
-
- aws_php_parse_parameters("s", &blob, &blob_len);
-
- aws_crt_http_message *message = aws_crt_http_message_new_from_blob((uint8_t *)blob, blob_len);
- RETURN_LONG((zend_ulong)message);
-}
-
-PHP_FUNCTION(aws_crt_http_message_to_blob) {
- zend_ulong php_msg = 0;
-
- aws_php_parse_parameters("l", &php_msg);
-
- aws_crt_http_message *message = (void *)php_msg;
- aws_crt_buf blob;
- aws_crt_http_message_to_blob(message, &blob);
- XRETURN_STRINGL((const char *)blob.blob, blob.length);
-}
-
-PHP_FUNCTION(aws_crt_http_message_release) {
- zend_ulong php_msg = 0;
-
- aws_php_parse_parameters("l", &php_msg);
-
- aws_crt_http_message *message = (void *)php_msg;
- aws_crt_http_message_release(message);
-}