Commit Graph

6 Commits

Author SHA1 Message Date
dcf00d8460
rework context
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m50s
This commit is a significant refactor that fixes a number of things.

1. Replaces the optional helpers import (which was always weird) with a
   mandatory interface import on behalf of the application. This is
   actually a good thing as it enables all things below.
2. Removes the severely awkward union that was the lambda context. Now,
   no matter how your handler runs, a single object with everything you
   need is fully populated and (nearly always) works as you would
   expect. There is a slight exception to this with AWS Lambda that is
   related to the service itself. It is also possible that not
   everything is passed in correctly for Cloudflare, which, if true,
   will be addressed later.
3. Allows writes to the context object. These will be added to the
   output, but is implementation dependent, and I'm not 100% sure I've
   got it right yet, but the infrastructure is there.
4. Allows proper tests throughout this project.
5. Allows proper tests in the application too.
6. Removes the need for the handler to be public under flexlib. Flexilib
   handler registration now works just like everything else. Note,
   however, that flexilib is unique in that your handler registration
   function will return before the program ends. If this is important
   for resource cleanup, @import("build_options").build_type is your
   friend.
7. Request method can now be passed into console applications using -m
   or --method
2023-10-24 23:45:12 -07:00
29687e1440
update README that main should return !u8
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m43s
2023-10-23 12:55:28 -07:00
e6ac41f4df
update README
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m28s
2023-10-20 23:06:13 -07:00
ce44fd567f
update README
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m19s
2023-10-05 16:23:44 -07:00
fc0f9a0c76
add README
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m30s
2023-09-21 10:45:06 -07:00
5bb9f3de07
it is alive 2023-09-16 08:14:11 -07:00