Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "LibAwsHTTP"
uuid = "ce851869-0d7a-41e7-95ef-2d4cb63876dd"
version = "1.2.9"
version = "1.2.10"

[deps]
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
Expand All @@ -17,7 +17,7 @@ LibAwsCal = "1.1"
LibAwsCommon = "1.2"
LibAwsCompression = "1.1"
LibAwsIO = "1.2"
aws_c_http_jll = "=0.10.7"
aws_c_http_jll = "=0.10.10"
julia = "1.6"
Test = "1.9"

Expand Down
2 changes: 1 addition & 1 deletion gen/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ aws_c_io_jll = "13c41daa-f319-5298-b5eb-5754e0170d52"
[compat]
Clang = "0.18.3,0.19"
JLLPrefixes = "0.3,0.4"
aws_c_http_jll = "=0.10.7"
aws_c_http_jll = "=0.10.10"
149 changes: 125 additions & 24 deletions lib/aarch64-apple-darwin20.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using CEnum
using CEnum: CEnum, @cenum

# typedef void ( aws_http_on_client_connection_setup_fn ) ( struct aws_http_connection * connection , int error_code , void * user_data )
"""
Expand Down Expand Up @@ -868,6 +868,19 @@ function aws_http_library_clean_up()
ccall((:aws_http_library_clean_up, libaws_c_http), Cvoid, ())
end

"""
aws_http_error_code_is_retryable(error_code)

Documentation not found.
### Prototype
```c
bool aws_http_error_code_is_retryable(int error_code);
```
"""
function aws_http_error_code_is_retryable(error_code)
ccall((:aws_http_error_code_is_retryable, libaws_c_http), Bool, (Cint,), error_code)
end

"""
aws_http_status_text(status_code)

Expand Down Expand Up @@ -1204,31 +1217,39 @@ struct aws_http_proxy_negotiator_tunnelling_vtable
end

"""
union (unnamed at /home/runner/.julia/artifacts/6d7603c59a4501a850b45dfc8948a5171cde4b8b/include/aws/http/proxy.h:310:5)
__JL_Ctag_38

Documentation not found.
"""
struct var"union (unnamed at /home/runner/.julia/artifacts/6d7603c59a4501a850b45dfc8948a5171cde4b8b/include/aws/http/proxy.h:310:5)"
struct __JL_Ctag_38
data::NTuple{8, UInt8}
end

function Base.getproperty(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/6d7603c59a4501a850b45dfc8948a5171cde4b8b/include/aws/http/proxy.h:310:5)"}, f::Symbol)
function Base.getproperty(x::Ptr{__JL_Ctag_38}, f::Symbol)
f === :forwarding_vtable && return Ptr{Ptr{aws_http_proxy_negotiator_forwarding_vtable}}(x + 0)
f === :tunnelling_vtable && return Ptr{Ptr{aws_http_proxy_negotiator_tunnelling_vtable}}(x + 0)
return getfield(x, f)
end

function Base.getproperty(x::var"union (unnamed at /home/runner/.julia/artifacts/6d7603c59a4501a850b45dfc8948a5171cde4b8b/include/aws/http/proxy.h:310:5)", f::Symbol)
r = Ref{var"union (unnamed at /home/runner/.julia/artifacts/6d7603c59a4501a850b45dfc8948a5171cde4b8b/include/aws/http/proxy.h:310:5)"}(x)
ptr = Base.unsafe_convert(Ptr{var"union (unnamed at /home/runner/.julia/artifacts/6d7603c59a4501a850b45dfc8948a5171cde4b8b/include/aws/http/proxy.h:310:5)"}, r)
function Base.getproperty(x::__JL_Ctag_38, f::Symbol)
r = Ref{__JL_Ctag_38}(x)
ptr = Base.unsafe_convert(Ptr{__JL_Ctag_38}, r)
fptr = getproperty(ptr, f)
GC.@preserve r unsafe_load(fptr)
end

function Base.setproperty!(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/6d7603c59a4501a850b45dfc8948a5171cde4b8b/include/aws/http/proxy.h:310:5)"}, f::Symbol, v)
function Base.setproperty!(x::Ptr{__JL_Ctag_38}, f::Symbol, v)
unsafe_store!(getproperty(x, f), v)
end

function Base.propertynames(x::__JL_Ctag_38, private::Bool = false)
(:forwarding_vtable, :tunnelling_vtable, if private
fieldnames(typeof(x))
else
()
end...)
end

"""
aws_http_proxy_negotiator

Expand All @@ -1241,7 +1262,7 @@ end
function Base.getproperty(x::Ptr{aws_http_proxy_negotiator}, f::Symbol)
f === :ref_count && return Ptr{aws_ref_count}(x + 0)
f === :impl && return Ptr{Ptr{Cvoid}}(x + 24)
f === :strategy_vtable && return Ptr{var"union (unnamed at /home/runner/.julia/artifacts/6d7603c59a4501a850b45dfc8948a5171cde4b8b/include/aws/http/proxy.h:310:5)"}(x + 32)
f === :strategy_vtable && return Ptr{__JL_Ctag_38}(x + 32)
return getfield(x, f)
end

Expand All @@ -1256,6 +1277,14 @@ function Base.setproperty!(x::Ptr{aws_http_proxy_negotiator}, f::Symbol, v)
unsafe_store!(getproperty(x, f), v)
end

function Base.propertynames(x::aws_http_proxy_negotiator, private::Bool = false)
(:ref_count, :impl, :strategy_vtable, if private
fieldnames(typeof(x))
else
()
end...)
end

"""
aws_http_proxy_strategy_basic_auth_options

Expand Down Expand Up @@ -2442,14 +2471,15 @@ function aws_http_message_set_body_stream(message, body_stream)
end

"""
Documentation not found.
aws\\_future<aws\\_http\\_message*>
"""
mutable struct aws_future_http_message end

"""
aws_future_http_message_new(alloc)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2462,7 +2492,8 @@ end
"""
aws_future_http_message_set_result_by_move(future, pointer_address)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2475,7 +2506,8 @@ end
"""
aws_future_http_message_get_result_by_move(future)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2488,7 +2520,8 @@ end
"""
aws_future_http_message_peek_result(future)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2501,7 +2534,8 @@ end
"""
aws_future_http_message_acquire(future)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2514,7 +2548,8 @@ end
"""
aws_future_http_message_release(future)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2527,7 +2562,8 @@ end
"""
aws_future_http_message_set_error(future, error_code)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2540,7 +2576,8 @@ end
"""
aws_future_http_message_is_done(future)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2553,7 +2590,8 @@ end
"""
aws_future_http_message_get_error(future)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2566,7 +2604,8 @@ end
"""
aws_future_http_message_register_callback(future, on_done, user_data)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2579,7 +2618,8 @@ end
"""
aws_future_http_message_register_callback_if_not_done(future, on_done, user_data)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2592,7 +2632,8 @@ end
"""
aws_future_http_message_register_event_loop_callback(future, event_loop, on_done, user_data)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2605,7 +2646,8 @@ end
"""
aws_future_http_message_register_channel_callback(future, channel, on_done, user_data)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand All @@ -2618,7 +2660,8 @@ end
"""
aws_future_http_message_wait(future, timeout_ns)

Documentation not found.
aws\\_future<aws\\_http\\_message*>

### Prototype
```c
AWS_FUTURE_T_POINTER_WITH_RELEASE_DECLARATION(aws_future_http_message, struct aws_http_message, AWS_HTTP_API);
Expand Down Expand Up @@ -3456,6 +3499,20 @@ struct aws_websocket_client_connection_options
host_resolution_config::Ptr{aws_host_resolution_config}
end

"""
aws_websocket_server_upgrade_options

Documentation not found.
"""
struct aws_websocket_server_upgrade_options
initial_window_size::Csize_t
user_data::Ptr{Cvoid}
on_incoming_frame_begin::Ptr{aws_websocket_on_incoming_frame_begin_fn}
on_incoming_frame_payload::Ptr{aws_websocket_on_incoming_frame_payload_fn}
on_incoming_frame_complete::Ptr{aws_websocket_on_incoming_frame_complete_fn}
manual_window_management::Bool
end

# typedef bool ( aws_websocket_stream_outgoing_payload_fn ) ( struct aws_websocket * websocket , struct aws_byte_buf * out_buf , void * user_data )
"""
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.
Expand Down Expand Up @@ -3656,6 +3713,50 @@ function aws_http_message_new_websocket_handshake_request(allocator, path, host)
ccall((:aws_http_message_new_websocket_handshake_request, libaws_c_http), Ptr{aws_http_message}, (Ptr{aws_allocator}, aws_byte_cursor, aws_byte_cursor), allocator, path, host)
end

"""
aws_websocket_is_websocket_request(request)

Return true if the request is a valid websocket upgrade request.

### Prototype
```c
bool aws_websocket_is_websocket_request(const struct aws_http_message *request);
```
"""
function aws_websocket_is_websocket_request(request)
ccall((:aws_websocket_is_websocket_request, libaws_c_http), Bool, (Ptr{aws_http_message},), request)
end

"""
aws_http_message_new_websocket_handshake_response(allocator, accept_key)

Create response with all required fields for a websocket upgrade response. The following headers are added:

Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: <base64 encoded accept key>

### Prototype
```c
struct aws_http_message *aws_http_message_new_websocket_handshake_response( struct aws_allocator *allocator, struct aws_byte_cursor accept_key);
```
"""
function aws_http_message_new_websocket_handshake_response(allocator, accept_key)
ccall((:aws_http_message_new_websocket_handshake_response, libaws_c_http), Ptr{aws_http_message}, (Ptr{aws_allocator}, aws_byte_cursor), allocator, accept_key)
end

"""
aws_websocket_upgrade(allocator, stream, options)

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.

### Prototype
```c
struct aws_websocket *aws_websocket_upgrade( struct aws_allocator *allocator, struct aws_http_stream *stream, const struct aws_websocket_server_upgrade_options *options);
```
"""
function aws_websocket_upgrade(allocator, stream, options)
ccall((:aws_websocket_upgrade, libaws_c_http), Ptr{aws_websocket}, (Ptr{aws_allocator}, Ptr{aws_http_stream}, Ptr{aws_websocket_server_upgrade_options}), allocator, stream, options)
end

"""
Documentation not found.
"""
Expand Down
Loading
Loading