edgee-cloud / edgee

The full-stack edge platform for your edge oriented applications.
https://www.edgee.cloud
Apache License 2.0
37 stars 6 forks source link

fix: Cookie Handling and Payload Processing #83

Closed SachaMorard closed 1 month ago

SachaMorard commented 1 month ago

Checklist

Description of Changes

Data collection components always received session_start instructions... There was an error redefining the user cookie at each request.

This pull request introduces several improvements and fixes to the edgee_cookies.rs, compute.rs, controller.rs, and proxy.rs files. The changes aim to enhance the handling of cookies, improve payload processing, and ensure better compliance with the application's requirements.

Changes:

  1. edgee_cookies.rs:

    • The methods of this script are now requiring a response_parts parameter instead of response_headers
  2. compute.rs:

    • edgee_cookie::get can now use the response_parts parameter instead of response_headers, and it fixes the bug we had on the session cookie set.
  3. controller.rs:

    • Improved the edgee_client_event function to handle incoming client events more effectively and use response_parts object
  4. proxy.rs:

    • Factorizing following changes to the other parts

Related Issues

no issue