Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

annotation updates #7

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

annotation updates #7

wants to merge 25 commits into from

Conversation

flrgh
Copy link
Collaborator

@flrgh flrgh commented Jun 10, 2024

Spent an afternoon this weekend doing an incremental update on OpenResty typedefs.

Highlights:

  • *
    • various style cleanup chores:
      • rename resty_core_<thing> local var to <thing>
      • prefer @field version string to various hardcoded values
      • update old-style string literals/constants ('"foo"' => "foo")
      • fix some typos
  • ngx
    • New: ngx.socket.tcp:bind()
    • New: ngx.socket.udp:bind()
  • ngx.balancer
    • New: set_upstream_tls()
  • ngx.ssl
    • New: parse_der_cert()
    • New: parse_der_priv_key()
    • New: get_req_ssl_pointer()
    • New: export_keying_material()
    • New: export_keying_material_early()
    • New: get_client_random()
    • Updated: get_tls1_version_str() returns ngx.ssl.tls_version.string
    • Updated: get_tls1_version() returns ngx.ssl.tls_version.integer
  • ngx.ssl.clienthello
    • New: get_supported_versions()
    • Updated: set_protocols() expects ngx.ssl.tls_version.string[]
  • resty.aes
    • Updated: encrypt() and decrypt() methods accept optional aad param
  • resty.websocket
    • Updated: move some unique child class fields from resty.websocket to resty.websocket.server/resty.websocket.client
    • Updated: resty.websocket.new.opts:
      • New: max_send_len
      • New: max_recv_len
    • Updated: resty.websocket.client.connect.opts
      • New: `pool_size
      • New: backlog
      • New: host
      • New: server_name
      • New: client_cert
      • New: client_priv_key
    • Updated: resty.websocket.server
      • New: send_continue() method
  • resty.core.time
    • New: monotonic_time()
    • New: monotonic_msec()
  • resty.dns.resolver
    • Updated: resty.dns.resolver.nameserver_tuple uses new tuple type
    • New: destroy() method
  • resty.upstream.healthcheck
    • New: added annotations
  • resty.upload
    • New: added annotations

NOTE: Some of the updates here (e.g. resty.websocket) are in master but have not yet been in an official OpenResty release just yet. I wish LuaLS had some concept of library/package versions so we could properly differentiate :(

flrgh added 25 commits June 10, 2024 11:50
1. Properly differentiate some differences between client/server objects
2. Add new `max_send_len`/`max_recv_len` options
3. Add `send_continue()` annotation for resty.websocket.server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant