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

Implement ContentsHandler's head request. #1327

Open
Carreau opened this issue Sep 23, 2023 · 2 comments
Open

Implement ContentsHandler's head request. #1327

Carreau opened this issue Sep 23, 2023 · 2 comments

Comments

@Carreau
Copy link
Contributor

Carreau commented Sep 23, 2023

See jupyterlab/jupyterlab#15153 in JupyterLab.

A few places might make use of HEAD request to check that a content does (or does not) exists without actually get the full content. Typically Save-As to show overwrite confirmation or not.

I think a blanket implementation that itself calls get but discard the body is the simpler to keep compatibility with subclasses.

@Zsailer
Copy link
Member

Zsailer commented Oct 12, 2023

I think a blanket implementation that itself calls get but discard the body is the simpler to keep compatibility with subclasses.

This already exists in Jupyter Server today. The client can use a query parameter content=0 when calling get in the contents service to get a response without content.

We should update the JupyterLab code to use this API on SaveAs.

@Carreau
Copy link
Contributor Author

Carreau commented Oct 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants