Skip to content

HTTP source - #168

Merged
AkihiroSuda merged 5 commits into
moby:masterfrom
tonistiigi:http-source
Dec 5, 2017
Merged

HTTP source#168
AkihiroSuda merged 5 commits into
moby:masterfrom
tonistiigi:http-source

Conversation

@tonistiigi

@tonistiigi tonistiigi commented Nov 17, 2017

Copy link
Copy Markdown
Member

closed #37

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

Comment thread source/http/httpsource.go Outdated
func (hs *httpSource) Resolve(ctx context.Context, id source.Identifier) (source.SourceInstance, error) {
httpIdentifier, ok := id.(*source.HttpIdentifier)
if !ok {
return nil, errors.Errorf("invalid git identifier %v", id)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not git

@AkihiroSuda AkihiroSuda mentioned this pull request Nov 20, 2017
@tonistiigi tonistiigi changed the title [WIP] HTTP source HTTP source Dec 2, 2017
@tonistiigi

Copy link
Copy Markdown
Member Author

@AkihiroSuda Added the tests and this should be ready for review now. I think we should probably add support for more headers like Expires, max-age, immutable but these can be in separate PRs.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi

Copy link
Copy Markdown
Member Author

Added more commits for overriding properties of the downloaded file, setting modified time from the header, etc.

@AkihiroSuda
AkihiroSuda merged commit 0373149 into moby:master Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add http source

2 participants