We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you start an interactive job that exposes an HTTP API, you have to manage a few things when trying to make requests to it from Julia:
Authorization
Managing this by hand can get tedious, so we could offer some helper API here that takes care of most of it for you automatically.
One option is to offer overloads of the HTTP.jl methods. So it might look something like:
endpoint::JuliaHub.JobEndpoint = JuliaHub.job_endpoint(job; auth) # HTTP.request("GET", endpoint, path::String, [[, headers], body]), e.g.: HTTP.request("GET", endpoint, "/my/rest/path")
Or possibly just offer our own JuliaHub.request function. Another suggestion was to allow the users to construct a callable object like
JuliaHub.request
request = JuliaHub.interactive_requests(job; auth) request("GET", "/my/rest/path", [[headers], body] )
cc @pfitzseb @pankgeorg
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When you start an interactive job that exposes an HTTP API, you have to manage a few things when trying to make requests to it from Julia:
Authorization
header.Managing this by hand can get tedious, so we could offer some helper API here that takes care of most of it for you automatically.
One option is to offer overloads of the HTTP.jl methods. So it might look something like:
Or possibly just offer our own
JuliaHub.request
function. Another suggestion was to allow the users to construct a callable object likecc @pfitzseb @pankgeorg
The text was updated successfully, but these errors were encountered: