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

How to read URL query string params in HandleMount? #60

Closed
dmarko484 opened this issue Nov 7, 2022 · 3 comments
Closed

How to read URL query string params in HandleMount? #60

dmarko484 opened this issue Nov 7, 2022 · 3 comments

Comments

@dmarko484
Copy link

How can I read URL query string value in handleMount func? How can I access http.Request in this context?
And thanks for this great project!!

@jfyne
Copy link
Owner

jfyne commented Nov 7, 2022

https://github.com/jfyne/live/blob/master/context.go#L21-L28

You can pass the context into live.Request and you will have the original request.

@dmarko484
Copy link
Author

Thanks, that's exactly I needed ...

@jfyne
Copy link
Owner

jfyne commented Nov 7, 2022

👍

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

No branches or pull requests

2 participants