Skip to content

Add a HttpIO / HttpFileSystem #20326

Open
@damccorm

Description

@damccorm

Add HttpIO (and a related HttpFileSystem and HttpsFileSystem), which can download files from a particular http:// or https:// URL. HttpIO cannot upload / write to files, though, because there's no standardized way to write to files using HTTP.

Sample usage:

 


        (
            p
            | ReadFromText("https://raw.githubusercontent.com/apache/beam/5ff5313f0913ec81d31ad306400ad30c0a928b34/NOTICE")

           | WriteToText("output.txt", shard_name_template="", num_shards=0)
        )

 

Imported from Jira BEAM-10101. Original Jira may contain additional context.
Reported by: epicfaace.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions