1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
;
;
/**
* A stream exists for the duration of a request/response exchange.
* A client creates a stream to send a request and receive a response.
* A server creates a stream to receive a request and send a response.
* In http/2, a push-promise stream can be sent by a server and received by a client.
*/
;
/**
* Controls whether a header's strings may be compressed by encoding the index of
* strings in a cache, rather than encoding the literal string.
*
* This setting has no effect on HTTP/1.x connections.
* On HTTP/2 connections this controls HPACK behavior.
* See RFC-7541 Section 7.1 for security considerations.
*/
;
/**
* A lightweight HTTP header struct.
* Note that the underlying strings are not owned by the byte cursors.
*/
;
/**
* A transformable block of HTTP headers.
* Provides a nice API for getting/setting header names and values.
*
* All strings are copied and stored within this datastructure.
* The index of a given header may change any time headers are modified.
* When iterating headers, the following ordering rules apply:
*
* - Headers with the same name will always be in the same order, relative to one another.
* If "A: one" is added before "A: two", then "A: one" will always precede "A: two".
*
* - Headers with different names could be in any order, relative to one another.
* If "A: one" is seen before "B: bee" in one iteration, you might see "B: bee" before "A: one" on the next.
*/
;
/**
* Header block type.
* INFORMATIONAL: Header block for 1xx informational (interim) responses.
* MAIN: Main header block sent with request or response.
* TRAILING: Headers sent after the body of a request or response.
*/
;
/**
* The definition for an outgoing HTTP request or response.
* The message may be transformed (ex: signing the request) before its data is eventually sent.
*
* The message keeps internal copies of its trivial strings (method, path, headers)
* but does NOT take ownership of its body stream.
*
* A language binding would likely present this as an HttpMessage base class with
* HttpRequest and HttpResponse subclasses.
*/
;
/**
* Function to invoke when a message transformation completes.
* This function MUST be invoked or the application will soft-lock.
* `message` and `complete_ctx` must be the same pointers provided to the `aws_http_message_transform_fn`.
* `error_code` should should be AWS_ERROR_SUCCESS if transformation was successful,
* otherwise pass a different AWS_ERROR_X value.
*/
typedef void;
/**
* A function that may modify a request or response before it is sent.
* The transformation may be asynchronous or immediate.
* The user MUST invoke the `complete_fn` when transformation is complete or the application will soft-lock.
* When invoking the `complete_fn`, pass along the `message` and `complete_ctx` provided here and an error code.
* The error code should be AWS_ERROR_SUCCESS if transformation was successful,
* otherwise pass a different AWS_ERROR_X value.
*/
typedef void;
/**
* Invoked repeatedly times as headers are received.
* At this point, aws_http_stream_get_incoming_response_status() can be called for the client.
* And aws_http_stream_get_incoming_request_method() and aws_http_stream_get_incoming_request_uri() can be called for
* the server.
* This is always invoked on the HTTP connection's event-loop thread.
*
* Return AWS_OP_SUCCESS to continue processing the stream.
* Return AWS_OP_ERR to indicate failure and cancel the stream.
*/
typedef int;
/**
* Invoked when the incoming header block of this type(informational/main/trailing) has been completely read.
* This is always invoked on the HTTP connection's event-loop thread.
*
* Return AWS_OP_SUCCESS to continue processing the stream.
* Return AWS_OP_ERR to indicate failure and cancel the stream.
*/
typedef int;
/**
* Called repeatedly as body data is received.
* The data must be copied immediately if you wish to preserve it.
* This is always invoked on the HTTP connection's event-loop thread.
*
* Note that, if the connection is using manual_window_management then the window
* size has shrunk by the amount of body data received. If the window size
* reaches 0 no further data will be received. Increment the window size with
* aws_http_stream_update_window().
*
* Return AWS_OP_SUCCESS to continue processing the stream.
* Return AWS_OP_ERR to indicate failure and cancel the stream.
*/
typedef int;
/**
* Invoked when request has been completely read.
* This is always invoked on the HTTP connection's event-loop thread.
*
* Return AWS_OP_SUCCESS to continue processing the stream.
* Return AWS_OP_ERR to indicate failure and cancel the stream.
*/
typedef int;
/**
* Invoked when request/response stream is completely destroyed.
* This may be invoked synchronously when aws_http_stream_release() is called.
* This is invoked even if the stream is never activated.
*/
typedef void;
/**
* Invoked when request/response stream destroy completely.
* This can be invoked within the same thead who release the refcount on http stream.
*/
typedef void;
/**
* Options for creating a stream which sends a request from the client and receives a response from the server.
*/
;
;
/**
* Invoked when the data stream of an outgoing HTTP write operation is no longer in use.
* This is always invoked on the HTTP connection's event-loop thread.
*
* @param stream HTTP-stream this write operation was submitted to.
* @param error_code If error_code is AWS_ERROR_SUCCESS (0), the data was successfully sent.
* Any other error_code indicates that the HTTP-stream is in the process of terminating.
* If the error_code is AWS_ERROR_HTTP_STREAM_HAS_COMPLETED,
* the stream's termination has nothing to do with this write operation.
* Any other non-zero error code indicates a problem with this particular write
* operation's data.
* @param user_data User data for this write operation.
*/
typedef void ;
/**
* Invoked when the data of an outgoing HTTP/1.1 chunk is no longer in use.
* This is always invoked on the HTTP connection's event-loop thread.
*
* @param stream HTTP-stream this chunk was submitted to.
* @param error_code If error_code is AWS_ERROR_SUCCESS (0), the data was successfully sent.
* Any other error_code indicates that the HTTP-stream is in the process of terminating.
* If the error_code is AWS_ERROR_HTTP_STREAM_HAS_COMPLETED,
* the stream's termination has nothing to do with this chunk.
* Any other non-zero error code indicates a problem with this particular chunk's data.
* @param user_data User data for this chunk.
*/
typedef aws_http_stream_write_complete_fn aws_http1_stream_write_chunk_complete_fn;
/**
* HTTP/1.1 chunk extension for chunked encoding.
* Note that the underlying strings are not owned by the byte cursors.
*/
;
/**
* Encoding options for an HTTP/1.1 chunked transfer encoding chunk.
*/
;
/**
* Invoked when the data of an outgoing HTTP2 data frame is no longer in use.
* This is always invoked on the HTTP connection's event-loop thread.
*
* @param stream HTTP2-stream this write was submitted to.
* @param error_code If error_code is AWS_ERROR_SUCCESS (0), the data was successfully sent.
* Any other error_code indicates that the HTTP-stream is in the process of terminating.
* If the error_code is AWS_ERROR_HTTP_STREAM_HAS_COMPLETED,
* the stream's termination has nothing to do with this write.
* Any other non-zero error code indicates a problem with this particular write's data.
* @param user_data User data for this write.
*/
typedef aws_http_stream_write_complete_fn aws_http2_stream_write_data_complete_fn;
/**
* Encoding options for manual H2 data frame writes
*/
;
/**
* Return whether both names are equivalent.
* This is a case-insensitive string comparison.
*
* Example Matches:
* "Content-Length" == "content-length" // upper or lower case ok
* Example Mismatches:
* "Content-Length" != " Content-Length" // leading whitespace bad
*/
bool ;
/**
* Create a new headers object.
* The caller has a hold on the object and must call aws_http_headers_release() when they are done with it.
*/
struct aws_http_headers *;
/**
* Acquire a hold on the object, preventing it from being deleted until
* aws_http_headers_release() is called by all those with a hold on it.
*/
void ;
/**
* Release a hold on the object.
* The object is deleted when all holds on it are released.
*/
void ;
/**
* Add a header.
* The underlying strings are copied.
*/
int ;
/**
* Add a header.
* The underlying strings are copied.
*/
int ;
/**
* Add an array of headers.
* The underlying strings are copied.
*/
int ;
/**
* Set a header value.
* The header is added if necessary and any existing values for this name are removed.
* The underlying strings are copied.
*/
int ;
/**
* Get the total number of headers.
*/
size_t ;
/**
* Get the header at the specified index.
* The index of a given header may change any time headers are modified.
* When iterating headers, the following ordering rules apply:
*
* - Headers with the same name will always be in the same order, relative to one another.
* If "A: one" is added before "A: two", then "A: one" will always precede "A: two".
*
* - Headers with different names could be in any order, relative to one another.
* If "A: one" is seen before "B: bee" in one iteration, you might see "B: bee" before "A: one" on the next.
*
* AWS_ERROR_INVALID_INDEX is raised if the index is invalid.
*/
int ;
/**
* Get the first value for this name, ignoring any additional values.
* AWS_ERROR_HTTP_HEADER_NOT_FOUND is raised if the name is not found.
*/
int ;
/**
* Test if header name exists or not in headers
*/
bool ;
/**
* Remove all headers with this name.
* AWS_ERROR_HTTP_HEADER_NOT_FOUND is raised if no headers with this name are found.
*/
int ;
/**
* Remove the first header found with this name and value.
* AWS_ERROR_HTTP_HEADER_NOT_FOUND is raised if no such header is found.
*/
int ;
/**
* Remove the header at the specified index.
*
* AWS_ERROR_INVALID_INDEX is raised if the index is invalid.
*/
int ;
/**
* Clear all headers.
*/
void ;
/**
* Get the `:method` value (HTTP/2 headers only).
*/
int ;
/**
* Set `:method` (HTTP/2 headers only).
* The headers makes its own copy of the underlying string.
*/
int ;
/*
* Get the `:scheme` value (HTTP/2 headers only).
*/
int ;
/**
* Set `:scheme` (request pseudo headers only).
* The pseudo headers makes its own copy of the underlying string.
*/
int ;
/*
* Get the `:authority` value (request pseudo headers only).
*/
int ;
/**
* Set `:authority` (request pseudo headers only).
* The pseudo headers makes its own copy of the underlying string.
*/
int ;
/*
* Get the `:path` value (request pseudo headers only).
*/
int ;
/**
* Set `:path` (request pseudo headers only).
* The pseudo headers makes its own copy of the underlying string.
*/
int ;
/**
* Get `:status` (response pseudo headers only).
* If no status is set, AWS_ERROR_HTTP_DATA_NOT_AVAILABLE is raised.
*/
int ;
/**
* Set `:status` (response pseudo headers only).
*/
int ;
/**
* Create a new HTTP/1.1 request message.
* The message is blank, all properties (method, path, etc) must be set individually.
* If HTTP/1.1 message used in HTTP/2 connection, the transformation will be automatically applied.
* A HTTP/2 message will created and sent based on the HTTP/1.1 message.
*
* The caller has a hold on the object and must call aws_http_message_release() when they are done with it.
*/
struct aws_http_message *;
/**
* Like aws_http_message_new_request(), but uses existing aws_http_headers instead of creating a new one.
* Acquires a hold on the headers, and releases it when the request is destroyed.
*/
struct aws_http_message *;
/**
* Create a new HTTP/1.1 response message.
* The message is blank, all properties (status, headers, etc) must be set individually.
*
* The caller has a hold on the object and must call aws_http_message_release() when they are done with it.
*/
struct aws_http_message *;
/**
* Create a new HTTP/2 request message.
* pseudo headers need to be set from aws_http2_headers_set_request_* to the headers of the aws_http_message.
* Will be errored out if used in HTTP/1.1 connection.
*
* The caller has a hold on the object and must call aws_http_message_release() when they are done with it.
*/
struct aws_http_message *;
/**
* Create a new HTTP/2 response message.
* pseudo headers need to be set from aws_http2_headers_set_response_status to the headers of the aws_http_message.
* Will be errored out if used in HTTP/1.1 connection.
*
* The caller has a hold on the object and must call aws_http_message_release() when they are done with it.
*/
struct aws_http_message *;
/**
* Create an HTTP/2 message from HTTP/1.1 message.
* pseudo headers will be created from the context and added to the headers of new message.
* Normal headers will be copied to the headers of new message.
* Note: if `host` exist, it will stay and `:authority` will be added using the information.
* `:scheme` is default to be "https". If a different scheme wants to be used, create the HTTP/2 message directly
*/
struct aws_http_message *;
/**
* Acquire a hold on the object, preventing it from being deleted until
* aws_http_message_release() is called by all those with a hold on it.
*
* This function returns the passed in message (possibly NULL) so that acquire-and-assign can be done with a single
* statement.
*/
struct aws_http_message *;
/**
* Release a hold on the object.
* The object is deleted when all holds on it are released.
*
* This function always returns NULL so that release-and-assign-NULL can be done with a single statement.
*/
struct aws_http_message *;
/**
* Deprecated. This is equivalent to aws_http_message_release().
*/
void ;
bool ;
bool ;
/**
* Get the protocol version of the http message.
*/
enum aws_http_version ;
/**
* Get the method (request messages only).
*/
int ;
/**
* Set the method (request messages only).
* The request makes its own copy of the underlying string.
*/
int ;
/*
* Get the path-and-query value (request messages only).
*/
int ;
/**
* Set the path-and-query value (request messages only).
* The request makes its own copy of the underlying string.
*/
int ;
/**
* Get the status code (response messages only).
* If no status is set, AWS_ERROR_HTTP_DATA_NOT_AVAILABLE is raised.
*/
int ;
/**
* Set the status code (response messages only).
*/
int ;
/**
* Get the body stream.
* Returns NULL if no body stream is set.
*/
struct aws_input_stream *;
/**
* Set the body stream.
* NULL is an acceptable value for messages with no body.
* Note: The message does NOT take ownership of the body stream.
* The stream must not be destroyed until the message is complete.
*/
void ;
/**
* Submit a chunk of data to be sent on an HTTP/1.1 stream.
* The stream must have specified "chunked" in a "transfer-encoding" header.
* For client streams, activate() must be called before any chunks are submitted.
* For server streams, the response must be submitted before any chunks.
* A final chunk with size 0 must be submitted to successfully complete the HTTP-stream.
*
* Returns AWS_OP_SUCCESS if the chunk has been submitted. The chunk's completion
* callback will be invoked when the HTTP-stream is done with the chunk data,
* whether or not it was successfully sent (see `aws_http1_stream_write_chunk_complete_fn`).
* The chunk data must remain valid until the completion callback is invoked.
*
* Returns AWS_OP_ERR and raises an error if the chunk could not be submitted.
* In this case, the chunk's completion callback will never be invoked.
* Note that it is always possible for the HTTP-stream to terminate unexpectedly
* prior to this call being made, in which case the error raised is
* AWS_ERROR_HTTP_STREAM_HAS_COMPLETED.
*/
AWS_HTTP_API int ;
/**
* The stream must have specified `http2_use_manual_data_writes` during request creation.
* For client streams, activate() must be called before any frames are submitted.
* For server streams, the response headers must be submitted before any frames.
* A write with options that has end_stream set to be true will end the stream and prevent any further write.
*
* @return AWS_OP_SUCCESS if the write was queued
* AWS_OP_ERROR indicating the attempt raised an error code.
* AWS_ERROR_INVALID_STATE will be raised for invalid usage.
* AWS_ERROR_HTTP_STREAM_HAS_COMPLETED will be raised if the stream ended for reasons behind the scenes.
*
* Typical usage will be something like:
* options.http2_use_manual_data_writes = true;
* stream = aws_http_connection_make_request(connection, &options);
* aws_http_stream_activate(stream);
* ...
* struct aws_http2_stream_write_data_options write;
* aws_http2_stream_write_data(stream, &write);
* ...
* struct aws_http2_stream_write_data_options last_write;
* last_write.end_stream = true;
* aws_http2_stream_write_data(stream, &write);
* ...
* aws_http_stream_release(stream);
*/
AWS_HTTP_API int ;
/**
* Add a list of headers to be added as trailing headers sent after the last chunk is sent.
* a "Trailer" header field which indicates the fields present in the trailer.
*
* Certain headers are forbidden in the trailer (e.g., Transfer-Encoding, Content-Length, Host). See RFC-7541
* Section 4.1.2 for more details.
*
* For client streams, activate() must be called before any chunks are submitted.
*
* For server streams, the response must be submitted before the trailer can be added
*
* aws_http1_stream_add_chunked_trailer must be called before the final size 0 chunk, and at the moment can only
* be called once, though this could change if need be.
*
* Returns AWS_OP_SUCCESS if the chunk has been submitted.
*/
AWS_HTTP_API int ;
/**
*
* This datastructure has more functions for inspecting and modifying headers than
* are available on the aws_http_message datastructure.
*/
struct aws_http_headers *;
/**
* Get the message's const aws_http_headers.
*/
const struct aws_http_headers *;
/**
* Get the number of headers.
*/
size_t ;
/**
* Get the header at the specified index.
* This function cannot fail if a valid index is provided.
* Otherwise, AWS_ERROR_INVALID_INDEX will be raised.
*
* The underlying strings are stored within the message.
*/
int ;
/**
* Add a header to the end of the array.
* The message makes its own copy of the underlying strings.
*/
int ;
/**
* Add an array of headers to the end of the header array.
* The message makes its own copy of the underlying strings.
*
* This is a helper function useful when it's easier to define headers as a stack array, rather than calling add_header
* repeatedly.
*/
int ;
/**
* Remove the header at the specified index.
* Headers after this index are all shifted back one position.
*
* This function cannot fail if a valid index is provided.
* Otherwise, AWS_ERROR_INVALID_INDEX will be raised.
*/
int ;
/**
* Create a stream, with a client connection sending a request.
* The request does not start sending automatically once the stream is created. You must call
* aws_http_stream_activate to begin execution of the request.
*
* The `options` are copied during this call.
*
* Tip for language bindings: Do not bind the `options` struct. Use something more natural for your language,
* such as Builder Pattern in Java, or Python's ability to take many optional arguments by name.
*/
struct aws_http_stream *;
/**
* Create a stream, with a server connection receiving and responding to a request.
* This function can only be called from the `aws_http_on_incoming_request_fn` callback.
* aws_http_stream_send_response() should be used to send a response.
*/
struct aws_http_stream *;
/**
* Users must release the stream when they are done with it, or its memory will never be cleaned up.
* This will not cancel the stream, its callbacks will still fire if the stream is still in progress.
*
* Tips for language bindings:
* - Invoke this from the wrapper class's finalizer/destructor.
* - Do not let the wrapper class be destroyed until on_complete() has fired.
*/
void ;
/**
* Only used for client initiated streams (immediately following a call to aws_http_connection_make_request).
*
* Activates the request's outgoing stream processing.
*/
AWS_HTTP_API int ;
struct aws_http_connection *;
/* Only valid in "request" streams, once response headers start arriving */
int ;
/* Only valid in "request handler" streams, once request headers start arriving */
int ;
int ;
/**
* Send response (only callable from "request handler" streams)
* The response object must stay alive at least until the stream's on_complete is called.
*/
int ;
/**
* Increment the stream's flow-control window to keep data flowing.
*
* If the connection was created with `manual_window_management` set true,
* the flow-control window of each stream will shrink as body data is received
* (headers, padding, and other metadata do not affect the window).
* The connection's `initial_window_size` determines the starting size of each stream's window.
* If a stream's flow-control window reaches 0, no further data will be received.
*
* If `manual_window_management` is false, this call will have no effect.
* The connection maintains its flow-control windows such that
* no back-pressure is applied and data arrives as fast as possible.
*/
void ;
/**
* Gets the HTTP/2 id associated with a stream. Even h1 streams have an id (using the same allocation procedure
* as http/2) for easier tracking purposes. For client streams, this will only be non-zero after a successful call
* to aws_http_stream_activate()
*/
uint32_t ;
/**
* Reset the HTTP/2 stream (HTTP/2 only).
* Note that if the stream closes before this async call is fully processed, the RST_STREAM frame will not be sent.
*
* @param http2_stream HTTP/2 stream.
* @param http2_error aws_http2_error_code. Reason to reset the stream.
*/
int ;
/**
* Get the error code received in rst_stream.
* Only valid if the stream has completed, and an RST_STREAM frame has received.
*
* @param http2_stream HTTP/2 stream.
* @param out_http2_error Gets to set to HTTP/2 error code received in rst_stream.
*/
int ;
/**
* Get the HTTP/2 error code sent in the RST_STREAM frame (HTTP/2 only).
* Only valid if the stream has completed, and has sent an RST_STREAM frame.
*
* @param http2_stream HTTP/2 stream.
* @param out_http2_error Gets to set to HTTP/2 error code sent in rst_stream.
*/
int ;
/* AWS_HTTP_REQUEST_RESPONSE_H */