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

Cli: allow to pass remote file - HTTPS #381

Merged
merged 4 commits into from
Sep 8, 2023
Merged

Conversation

nicoloboschi
Copy link
Member

@nicoloboschi nicoloboschi commented Sep 8, 2023

  • Each value (-app, -i, -s) if it starts with https:// will be downloaded and included in the zip. If the request fails the command fails as well
  • plain HTTP is not supported

if (path == null) {
return null;
}
if (path.startsWith("http://") || path.startsWith("https://")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"http://" is not more a thing in 2023, we should probably not support it

.version(HttpClient.Version.HTTP_1_1)
.GET()
.build();
final Path tempFile = Files.createTempFile("langstram", ".bin");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: langstram

@nicoloboschi nicoloboschi changed the title Cli: allow to pass remote file(s) - HTTP Cli: allow to pass remote file - HTTPS Sep 8, 2023
@nicoloboschi nicoloboschi merged commit fc90b1e into main Sep 8, 2023
8 checks passed
@nicoloboschi nicoloboschi deleted the cli-download-remote branch September 8, 2023 09:59
benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants