-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conversation
I have completed the implementation, please check the example. |
I'll check this in weekend, thanks! |
_examples/incoming/go.mod
Outdated
@@ -0,0 +1,7 @@ | |||
module github.com/syumai/workers/_examples/hello |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module github.com/syumai/workers/_examples/hello | |
module github.com/syumai/workers/_examples/incoming |
cloudflare/incoming/property.go
Outdated
@@ -0,0 +1,159 @@ | |||
package incoming |
There was a problem hiding this comment.
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?
7bcafbb
to
3377f3c
Compare
3377f3c
to
83be8bc
Compare
I have made some |
return err | ||
} | ||
return nil | ||
} | ||
|
||
func init() { | ||
runSchedulerCallback := js.FuncOf(func(_ js.Value, args []js.Value) any { | ||
if len(args) != 2 { | ||
if len(args) != 1 { |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What
Add Incoming Properties with this change. But WIP
Motivation
https://developers.cloudflare.com/workers/runtime-apis/request/#incomingrequestcfproperties