Skip to content

Commit 44882e4

Browse files
committed
Update aws_c_http_jq_jll to version 0.10.6
1 parent 27016b5 commit 44882e4

14 files changed

Lines changed: 121 additions & 861 deletions

Project.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "LibAwsHTTPFork"
22
uuid = "d3f1d20b-921e-4930-8491-471e0be3121a"
3-
version = "1.0.5"
3+
version = "1.0.6"
44

55
[deps]
66
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
@@ -11,14 +11,15 @@ LibAwsIO = "a5388770-19df-4151-b103-3d71de896ddf"
1111
aws_c_http_jq_jll = "8f53af78-0b28-57f6-844a-4720ec1bfefc"
1212

1313
[compat]
14-
Aqua = "0.7"
14+
Aqua = "0.7,0.8"
1515
CEnum = "0.5"
1616
LibAwsCal = "1.1"
1717
LibAwsCommon = "1.2"
1818
LibAwsCompression = "1.1"
1919
LibAwsIO = "1.2"
20-
aws_c_http_jq_jll = "=0.10.2"
20+
aws_c_http_jq_jll = "=0.10.6"
2121
julia = "1.6"
22+
Test = "1.11"
2223

2324
[extras]
2425
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"

lib/aarch64-apple-darwin20.jl

Lines changed: 9 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ struct aws_http_proxy_options
185185
auth_type::aws_http_proxy_authentication_type
186186
auth_username::aws_byte_cursor
187187
auth_password::aws_byte_cursor
188+
no_proxy_hosts::aws_byte_cursor
188189
end
189190

190191
"""
@@ -1203,28 +1204,28 @@ struct aws_http_proxy_negotiator_tunnelling_vtable
12031204
end
12041205

12051206
"""
1206-
union (unnamed at /home/runner/.julia/artifacts/0a9f325bb7385a853365ca0bbfb154614c702981/include/aws/http/proxy.h:302:5)
1207+
union (unnamed at /home/runner/.julia/artifacts/7462356ce6118e7f75f705b89b1ae23564fddadc/include/aws/http/proxy.h:310:5)
12071208
12081209
Documentation not found.
12091210
"""
1210-
struct var"union (unnamed at /home/runner/.julia/artifacts/0a9f325bb7385a853365ca0bbfb154614c702981/include/aws/http/proxy.h:302:5)"
1211+
struct var"union (unnamed at /home/runner/.julia/artifacts/7462356ce6118e7f75f705b89b1ae23564fddadc/include/aws/http/proxy.h:310:5)"
12111212
data::NTuple{8, UInt8}
12121213
end
12131214

1214-
function Base.getproperty(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/0a9f325bb7385a853365ca0bbfb154614c702981/include/aws/http/proxy.h:302:5)"}, f::Symbol)
1215+
function Base.getproperty(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/7462356ce6118e7f75f705b89b1ae23564fddadc/include/aws/http/proxy.h:310:5)"}, f::Symbol)
12151216
f === :forwarding_vtable && return Ptr{Ptr{aws_http_proxy_negotiator_forwarding_vtable}}(x + 0)
12161217
f === :tunnelling_vtable && return Ptr{Ptr{aws_http_proxy_negotiator_tunnelling_vtable}}(x + 0)
12171218
return getfield(x, f)
12181219
end
12191220

1220-
function Base.getproperty(x::var"union (unnamed at /home/runner/.julia/artifacts/0a9f325bb7385a853365ca0bbfb154614c702981/include/aws/http/proxy.h:302:5)", f::Symbol)
1221-
r = Ref{var"union (unnamed at /home/runner/.julia/artifacts/0a9f325bb7385a853365ca0bbfb154614c702981/include/aws/http/proxy.h:302:5)"}(x)
1222-
ptr = Base.unsafe_convert(Ptr{var"union (unnamed at /home/runner/.julia/artifacts/0a9f325bb7385a853365ca0bbfb154614c702981/include/aws/http/proxy.h:302:5)"}, r)
1221+
function Base.getproperty(x::var"union (unnamed at /home/runner/.julia/artifacts/7462356ce6118e7f75f705b89b1ae23564fddadc/include/aws/http/proxy.h:310:5)", f::Symbol)
1222+
r = Ref{var"union (unnamed at /home/runner/.julia/artifacts/7462356ce6118e7f75f705b89b1ae23564fddadc/include/aws/http/proxy.h:310:5)"}(x)
1223+
ptr = Base.unsafe_convert(Ptr{var"union (unnamed at /home/runner/.julia/artifacts/7462356ce6118e7f75f705b89b1ae23564fddadc/include/aws/http/proxy.h:310:5)"}, r)
12231224
fptr = getproperty(ptr, f)
12241225
GC.@preserve r unsafe_load(fptr)
12251226
end
12261227

1227-
function Base.setproperty!(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/0a9f325bb7385a853365ca0bbfb154614c702981/include/aws/http/proxy.h:302:5)"}, f::Symbol, v)
1228+
function Base.setproperty!(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/7462356ce6118e7f75f705b89b1ae23564fddadc/include/aws/http/proxy.h:310:5)"}, f::Symbol, v)
12281229
unsafe_store!(getproperty(x, f), v)
12291230
end
12301231

@@ -1240,7 +1241,7 @@ end
12401241
function Base.getproperty(x::Ptr{aws_http_proxy_negotiator}, f::Symbol)
12411242
f === :ref_count && return Ptr{aws_ref_count}(x + 0)
12421243
f === :impl && return Ptr{Ptr{Cvoid}}(x + 24)
1243-
f === :strategy_vtable && return Ptr{var"union (unnamed at /home/runner/.julia/artifacts/0a9f325bb7385a853365ca0bbfb154614c702981/include/aws/http/proxy.h:302:5)"}(x + 32)
1244+
f === :strategy_vtable && return Ptr{var"union (unnamed at /home/runner/.julia/artifacts/7462356ce6118e7f75f705b89b1ae23564fddadc/include/aws/http/proxy.h:310:5)"}(x + 32)
12441245
return getfield(x, f)
12451246
end
12461247

@@ -3455,20 +3456,6 @@ struct aws_websocket_client_connection_options
34553456
host_resolution_config::Ptr{aws_host_resolution_config}
34563457
end
34573458

3458-
"""
3459-
aws_websocket_server_upgrade_options
3460-
3461-
Documentation not found.
3462-
"""
3463-
struct aws_websocket_server_upgrade_options
3464-
initial_window_size::Csize_t
3465-
user_data::Ptr{Cvoid}
3466-
on_incoming_frame_begin::Ptr{aws_websocket_on_incoming_frame_begin_fn}
3467-
on_incoming_frame_payload::Ptr{aws_websocket_on_incoming_frame_payload_fn}
3468-
on_incoming_frame_complete::Ptr{aws_websocket_on_incoming_frame_complete_fn}
3469-
manual_window_management::Bool
3470-
end
3471-
34723459
# typedef bool ( aws_websocket_stream_outgoing_payload_fn ) ( struct aws_websocket * websocket , struct aws_byte_buf * out_buf , void * user_data )
34733460
"""
34743461
Called repeatedly as the websocket's payload is streamed out. The user should write payload data to out\\_buf, up to available capacity. The websocket will mask this data for you, if necessary. Invoked repeatedly on the websocket's event-loop thread.
@@ -3669,50 +3656,6 @@ function aws_http_message_new_websocket_handshake_request(allocator, path, host)
36693656
ccall((:aws_http_message_new_websocket_handshake_request, libaws_c_http_jq), Ptr{aws_http_message}, (Ptr{aws_allocator}, aws_byte_cursor, aws_byte_cursor), allocator, path, host)
36703657
end
36713658

3672-
"""
3673-
aws_websocket_is_websocket_request(request)
3674-
3675-
Return true if the request is a valid websocket upgrade request.
3676-
3677-
### Prototype
3678-
```c
3679-
bool aws_websocket_is_websocket_request(const struct aws_http_message *request);
3680-
```
3681-
"""
3682-
function aws_websocket_is_websocket_request(request)
3683-
ccall((:aws_websocket_is_websocket_request, libaws_c_http_jq), Bool, (Ptr{aws_http_message},), request)
3684-
end
3685-
3686-
"""
3687-
aws_http_message_new_websocket_handshake_response(allocator, accept_key)
3688-
3689-
Create response with all required fields for a websocket upgrade response. The following headers are added:
3690-
3691-
Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: <base64 encoded accept key>
3692-
3693-
### Prototype
3694-
```c
3695-
struct aws_http_message *aws_http_message_new_websocket_handshake_response( struct aws_allocator *allocator, struct aws_byte_cursor accept_key);
3696-
```
3697-
"""
3698-
function aws_http_message_new_websocket_handshake_response(allocator, accept_key)
3699-
ccall((:aws_http_message_new_websocket_handshake_response, libaws_c_http_jq), Ptr{aws_http_message}, (Ptr{aws_allocator}, aws_byte_cursor), allocator, accept_key)
3700-
end
3701-
3702-
"""
3703-
aws_websocket_upgrade(allocator, stream, options)
3704-
3705-
Upgrade an incoming HTTP connection to a websocket connection. This function should be called from the on\\_request\\_done callback of a request handler. It expects a fully constructed request and will handle sending the handshake response and install the websocket handler into the channel.
3706-
3707-
### Prototype
3708-
```c
3709-
struct aws_websocket *aws_websocket_upgrade( struct aws_allocator *allocator, struct aws_http_stream *stream, const struct aws_websocket_server_upgrade_options *options);
3710-
```
3711-
"""
3712-
function aws_websocket_upgrade(allocator, stream, options)
3713-
ccall((:aws_websocket_upgrade, libaws_c_http_jq), Ptr{aws_websocket}, (Ptr{aws_allocator}, Ptr{aws_http_stream}, Ptr{aws_websocket_server_upgrade_options}), allocator, stream, options)
3714-
end
3715-
37163659
"""
37173660
Documentation not found.
37183661
"""

lib/aarch64-linux-gnu.jl

Lines changed: 9 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ struct aws_http_proxy_options
185185
auth_type::aws_http_proxy_authentication_type
186186
auth_username::aws_byte_cursor
187187
auth_password::aws_byte_cursor
188+
no_proxy_hosts::aws_byte_cursor
188189
end
189190

190191
"""
@@ -1203,28 +1204,28 @@ struct aws_http_proxy_negotiator_tunnelling_vtable
12031204
end
12041205

12051206
"""
1206-
union (unnamed at /home/runner/.julia/artifacts/7fb02f8455840f59ecec47ebdfbbdb29308f4801/include/aws/http/proxy.h:302:5)
1207+
union (unnamed at /home/runner/.julia/artifacts/72321f4919c0bf1edfd7e8e62c651e45e8a1400a/include/aws/http/proxy.h:310:5)
12071208
12081209
Documentation not found.
12091210
"""
1210-
struct var"union (unnamed at /home/runner/.julia/artifacts/7fb02f8455840f59ecec47ebdfbbdb29308f4801/include/aws/http/proxy.h:302:5)"
1211+
struct var"union (unnamed at /home/runner/.julia/artifacts/72321f4919c0bf1edfd7e8e62c651e45e8a1400a/include/aws/http/proxy.h:310:5)"
12111212
data::NTuple{8, UInt8}
12121213
end
12131214

1214-
function Base.getproperty(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/7fb02f8455840f59ecec47ebdfbbdb29308f4801/include/aws/http/proxy.h:302:5)"}, f::Symbol)
1215+
function Base.getproperty(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/72321f4919c0bf1edfd7e8e62c651e45e8a1400a/include/aws/http/proxy.h:310:5)"}, f::Symbol)
12151216
f === :forwarding_vtable && return Ptr{Ptr{aws_http_proxy_negotiator_forwarding_vtable}}(x + 0)
12161217
f === :tunnelling_vtable && return Ptr{Ptr{aws_http_proxy_negotiator_tunnelling_vtable}}(x + 0)
12171218
return getfield(x, f)
12181219
end
12191220

1220-
function Base.getproperty(x::var"union (unnamed at /home/runner/.julia/artifacts/7fb02f8455840f59ecec47ebdfbbdb29308f4801/include/aws/http/proxy.h:302:5)", f::Symbol)
1221-
r = Ref{var"union (unnamed at /home/runner/.julia/artifacts/7fb02f8455840f59ecec47ebdfbbdb29308f4801/include/aws/http/proxy.h:302:5)"}(x)
1222-
ptr = Base.unsafe_convert(Ptr{var"union (unnamed at /home/runner/.julia/artifacts/7fb02f8455840f59ecec47ebdfbbdb29308f4801/include/aws/http/proxy.h:302:5)"}, r)
1221+
function Base.getproperty(x::var"union (unnamed at /home/runner/.julia/artifacts/72321f4919c0bf1edfd7e8e62c651e45e8a1400a/include/aws/http/proxy.h:310:5)", f::Symbol)
1222+
r = Ref{var"union (unnamed at /home/runner/.julia/artifacts/72321f4919c0bf1edfd7e8e62c651e45e8a1400a/include/aws/http/proxy.h:310:5)"}(x)
1223+
ptr = Base.unsafe_convert(Ptr{var"union (unnamed at /home/runner/.julia/artifacts/72321f4919c0bf1edfd7e8e62c651e45e8a1400a/include/aws/http/proxy.h:310:5)"}, r)
12231224
fptr = getproperty(ptr, f)
12241225
GC.@preserve r unsafe_load(fptr)
12251226
end
12261227

1227-
function Base.setproperty!(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/7fb02f8455840f59ecec47ebdfbbdb29308f4801/include/aws/http/proxy.h:302:5)"}, f::Symbol, v)
1228+
function Base.setproperty!(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/72321f4919c0bf1edfd7e8e62c651e45e8a1400a/include/aws/http/proxy.h:310:5)"}, f::Symbol, v)
12281229
unsafe_store!(getproperty(x, f), v)
12291230
end
12301231

@@ -1240,7 +1241,7 @@ end
12401241
function Base.getproperty(x::Ptr{aws_http_proxy_negotiator}, f::Symbol)
12411242
f === :ref_count && return Ptr{aws_ref_count}(x + 0)
12421243
f === :impl && return Ptr{Ptr{Cvoid}}(x + 24)
1243-
f === :strategy_vtable && return Ptr{var"union (unnamed at /home/runner/.julia/artifacts/7fb02f8455840f59ecec47ebdfbbdb29308f4801/include/aws/http/proxy.h:302:5)"}(x + 32)
1244+
f === :strategy_vtable && return Ptr{var"union (unnamed at /home/runner/.julia/artifacts/72321f4919c0bf1edfd7e8e62c651e45e8a1400a/include/aws/http/proxy.h:310:5)"}(x + 32)
12441245
return getfield(x, f)
12451246
end
12461247

@@ -3455,20 +3456,6 @@ struct aws_websocket_client_connection_options
34553456
host_resolution_config::Ptr{aws_host_resolution_config}
34563457
end
34573458

3458-
"""
3459-
aws_websocket_server_upgrade_options
3460-
3461-
Documentation not found.
3462-
"""
3463-
struct aws_websocket_server_upgrade_options
3464-
initial_window_size::Csize_t
3465-
user_data::Ptr{Cvoid}
3466-
on_incoming_frame_begin::Ptr{aws_websocket_on_incoming_frame_begin_fn}
3467-
on_incoming_frame_payload::Ptr{aws_websocket_on_incoming_frame_payload_fn}
3468-
on_incoming_frame_complete::Ptr{aws_websocket_on_incoming_frame_complete_fn}
3469-
manual_window_management::Bool
3470-
end
3471-
34723459
# typedef bool ( aws_websocket_stream_outgoing_payload_fn ) ( struct aws_websocket * websocket , struct aws_byte_buf * out_buf , void * user_data )
34733460
"""
34743461
Called repeatedly as the websocket's payload is streamed out. The user should write payload data to out\\_buf, up to available capacity. The websocket will mask this data for you, if necessary. Invoked repeatedly on the websocket's event-loop thread.
@@ -3669,50 +3656,6 @@ function aws_http_message_new_websocket_handshake_request(allocator, path, host)
36693656
ccall((:aws_http_message_new_websocket_handshake_request, libaws_c_http_jq), Ptr{aws_http_message}, (Ptr{aws_allocator}, aws_byte_cursor, aws_byte_cursor), allocator, path, host)
36703657
end
36713658

3672-
"""
3673-
aws_websocket_is_websocket_request(request)
3674-
3675-
Return true if the request is a valid websocket upgrade request.
3676-
3677-
### Prototype
3678-
```c
3679-
bool aws_websocket_is_websocket_request(const struct aws_http_message *request);
3680-
```
3681-
"""
3682-
function aws_websocket_is_websocket_request(request)
3683-
ccall((:aws_websocket_is_websocket_request, libaws_c_http_jq), Bool, (Ptr{aws_http_message},), request)
3684-
end
3685-
3686-
"""
3687-
aws_http_message_new_websocket_handshake_response(allocator, accept_key)
3688-
3689-
Create response with all required fields for a websocket upgrade response. The following headers are added:
3690-
3691-
Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: <base64 encoded accept key>
3692-
3693-
### Prototype
3694-
```c
3695-
struct aws_http_message *aws_http_message_new_websocket_handshake_response( struct aws_allocator *allocator, struct aws_byte_cursor accept_key);
3696-
```
3697-
"""
3698-
function aws_http_message_new_websocket_handshake_response(allocator, accept_key)
3699-
ccall((:aws_http_message_new_websocket_handshake_response, libaws_c_http_jq), Ptr{aws_http_message}, (Ptr{aws_allocator}, aws_byte_cursor), allocator, accept_key)
3700-
end
3701-
3702-
"""
3703-
aws_websocket_upgrade(allocator, stream, options)
3704-
3705-
Upgrade an incoming HTTP connection to a websocket connection. This function should be called from the on\\_request\\_done callback of a request handler. It expects a fully constructed request and will handle sending the handshake response and install the websocket handler into the channel.
3706-
3707-
### Prototype
3708-
```c
3709-
struct aws_websocket *aws_websocket_upgrade( struct aws_allocator *allocator, struct aws_http_stream *stream, const struct aws_websocket_server_upgrade_options *options);
3710-
```
3711-
"""
3712-
function aws_websocket_upgrade(allocator, stream, options)
3713-
ccall((:aws_websocket_upgrade, libaws_c_http_jq), Ptr{aws_websocket}, (Ptr{aws_allocator}, Ptr{aws_http_stream}, Ptr{aws_websocket_server_upgrade_options}), allocator, stream, options)
3714-
end
3715-
37163659
"""
37173660
Documentation not found.
37183661
"""

0 commit comments

Comments
 (0)