Skip to content

Commit e5f2343

Browse files
authored
aws_future<aws_http_message *> (#443)
Declare `aws_future_http_message`
1 parent 2c7e0c4 commit e5f2343

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- 'main'
77

88
env:
9-
BUILDER_VERSION: v0.9.43
10-
BUILDER_SOURCE: releases
9+
BUILDER_VERSION: head-detached-bug
10+
BUILDER_SOURCE: channels
1111
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
1212
PACKAGE_NAME: aws-c-http
1313
LINUX_BASE_IMAGE: ubuntu-18-x64

codebuild/linux-integration-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ phases:
1111
commands:
1212
- export CC=gcc-7
1313
- export BUILDER_VERSION=$(cat .github/workflows/ci.yml | grep 'BUILDER_VERSION:' | sed 's/\s*BUILDER_VERSION:\s*\(.*\)/\1/')
14-
- echo "Using builder version ${BUILDER_VERSION}"
15-
- export BUILDER_SOURCE=releases
14+
- export BUILDER_SOURCE=$(cat .github/workflows/ci.yml | grep 'BUILDER_SOURCE:' | sed 's/\s*BUILDER_SOURCE:\s*\(.*\)/\1/')
15+
- echo "Using builder version='${BUILDER_VERSION}' source='${BUILDER_SOURCE}'"
1616
- export BUILDER_HOST=https://d19elf31gohf1l.cloudfront.net
1717
build:
1818
commands:

include/aws/http/request_response.h

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include <aws/http/http.h>
1010

11+
#include <aws/io/future.h>
12+
1113
AWS_PUSH_SANE_WARNING_LEVEL
1214

1315
struct aws_http_connection;
@@ -855,6 +857,11 @@ struct aws_input_stream *aws_http_message_get_body_stream(const struct aws_http_
855857
AWS_HTTP_API
856858
void aws_http_message_set_body_stream(struct aws_http_message *message, struct aws_input_stream *body_stream);
857859

860+
/**
861+
* aws_future<aws_http_message*>
862+
*/
863+
AWS_DECLARE_FUTURE_T_POINTER_WITH_RELEASE(aws_future_http_message, struct aws_http_message, aws_http_message_release)
864+
858865
/**
859866
* Submit a chunk of data to be sent on an HTTP/1.1 stream.
860867
* The stream must have specified "chunked" in a "transfer-encoding" header.

0 commit comments

Comments
 (0)