-
Notifications
You must be signed in to change notification settings - Fork 149
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
Add rewrite_response #209
Add rewrite_response #209
Conversation
Hi @maresb , First, I'm very sorry for the delay, but thank you very much for the PR including the extra cleanups. Regarding your questions:
How would you feel about rebasing on master? I'd be happy to merge. |
@ryanlovett, wow, it's been a while since I thought about this! 😆 I'm pleasantly surprised that you're interested in merging. I just rebased onto master. Before rebase: 6e5313a Probably before merging I should have one more look over my commits and make sure they still do what was intended, and that I didn't make any errors during the rebase. |
BTW, what do you think about black/pre-commit? It may be nice to standardize the formatting, but then that messes with all the outstanding PRs. But then maybe one could use something like this to rebase existing PRs. |
Thanks @maresb , I really appreciate the rebase! Just let me know when you think it is ready. I wouldn't mind having some sort of automatic formatting. Not having to make formatting decisions appeals to me. That can probably be proposed in a new issue and then other project members can chime in. |
@ryanlovett I'm fairly convinced that it's ready now. (I was worried that if I made a mistake with the rebase then I might inadvertently revert something.) If it looks good to you, then please merge. |
Thank you again @maresb ! |
Hey all, here's what I came up with to resolve #202.
I seem to have achieved my original goal, but there's quite a lot I'm dissatisfied about.
rewrite_response
function take justresponse
as input without losing important information. Thus I modified my original specification, andrewrite_response
is now a function ofhost
,port
,path
, andresponse
.non_service_rewrite_response
to handle the/proxy/
endpoint. In this case I'm skeptical of thejupyter-server-proxy
design. Namely, I would find it more intuitive to first define a correspondence between "j-s-p server" objects and endpoints, and then implement the/proxy/
endpoint as a "j-s-p server". Was it a conscious design decision not to do this, or is it just the way things evolved?rewrite_response
won't be of any help here.I do think this PR is a step forward. Regarding the points above, would it make sense to address any quick fixes, merge, and then make issues for any outstanding points?