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

Support Incoming Properties #88

Merged
merged 13 commits into from
Jan 24, 2024
Merged

Conversation

aki-0421
Copy link
Contributor

What

Add Incoming Properties with this change. But WIP

Motivation

https://developers.cloudflare.com/workers/runtime-apis/request/#incomingrequestcfproperties

@aki-0421 aki-0421 marked this pull request as ready for review January 18, 2024 12:44
@aki-0421
Copy link
Contributor Author

I have completed the implementation, please check the example.

@syumai
Copy link
Owner

syumai commented Jan 18, 2024

I'll check this in weekend, thanks!

@@ -0,0 +1,7 @@
module github.com/syumai/workers/_examples/hello
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
module github.com/syumai/workers/_examples/hello
module github.com/syumai/workers/_examples/incoming

@@ -0,0 +1,159 @@
package incoming
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incoming seems a part of fetch feature.
Can we merge these package?

@aki-0421
Copy link
Contributor Author

I have made some runtimecontext related fixes. Could you review it once?

@aki-0421 aki-0421 requested a review from syumai January 22, 2024 13:11
return err
}
return nil
}

func init() {
runSchedulerCallback := js.FuncOf(func(_ js.Value, args []js.Value) any {
if len(args) != 2 {
if len(args) != 1 {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to fix this. Thanks!

Copy link
Owner

@syumai syumai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@syumai syumai merged commit 3b8e255 into syumai:main Jan 24, 2024
1 check passed
@aki-0421 aki-0421 deleted the incoming-properties branch January 24, 2024 23:58
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.

2 participants