Skip to content

Commit 27efc27

Browse files
authored
adapt to aws_future changes (#445)
see: awslabs/aws-c-io#577
1 parent dbceb17 commit 27efc27

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

include/aws/http/request_response.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ void aws_http_message_set_body_stream(struct aws_http_message *message, struct a
860860
/**
861861
* aws_future<aws_http_message*>
862862
*/
863-
AWS_DECLARE_FUTURE_T_POINTER_WITH_RELEASE(aws_future_http_message, struct aws_http_message, aws_http_message_release)
863+
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API)
864864

865865
/**
866866
* Submit a chunk of data to be sent on an HTTP/1.1 stream.

source/request_response.c

+9-3
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,11 @@ int aws_http_message_get_header(
867867
return aws_http_headers_get_index(message->headers, index, out_header);
868868
}
869869

870+
AWS_FUTURE_T_POINTER_WITH_RELEASE_IMPLEMENTATION(
871+
aws_future_http_message,
872+
struct aws_http_message,
873+
aws_http_message_release)
874+
870875
struct aws_http_stream *aws_http_connection_make_request(
871876
struct aws_http_connection *client_connection,
872877
const struct aws_http_make_request_options *options) {
@@ -952,8 +957,8 @@ struct aws_http_message *aws_http2_message_new_from_http1(
952957
scheme_cursor.ptr);
953958

954959
/**
955-
* An intermediary that forwards a request over HTTP/2 MUST construct an ":authority" pseudo-header field using
956-
* the authority information from the control data of the original request. (RFC=9113 8.3.1)
960+
* An intermediary that forwards a request over HTTP/2 MUST construct an ":authority" pseudo-header field
961+
* using the authority information from the control data of the original request. (RFC=9113 8.3.1)
957962
*/
958963
struct aws_byte_cursor host_value;
959964
AWS_ZERO_STRUCT(host_value);
@@ -970,7 +975,8 @@ struct aws_http_message *aws_http2_message_new_from_http1(
970975
(int)host_value.len,
971976
host_value.ptr);
972977
}
973-
/* TODO: If the host headers is missing, the target URI could be the other source of the authority information
978+
/* TODO: If the host headers is missing, the target URI could be the other source of the authority
979+
* information
974980
*/
975981

976982
struct aws_byte_cursor path_cursor;

0 commit comments

Comments
 (0)