Repository navigation
Implement COPY verb support - #419
Merged
Merged
Conversation
Implements issue solid/solid#49, adds support for an HTTP Copy verb that allows importing an external resource to a given Solid destination.
| * "Save an external resource to Solid" type apps. | ||
| * @method handler | ||
| */ | ||
| function handler (req, res, next) { |
Contributor
There was a problem hiding this comment.
hey @dmitrizagidulin in order to make our life easy once we want to move to another type of store, we are abstracting all of the file system stuff into ldp.js. The way I see it is the following:
- File system
- LDP.copy
- HTTP Server handling
this copy.js should call LDP.copy (that will be implemented with fs calls and a callback_) and in the callback_ do the http handling (see get.js for example!)
Contributor
Author
There was a problem hiding this comment.
Ah, I see what you're saying. Sure, I can refactor it to do that, np.
Contributor
Author
|
@nicola - Refactored the code to call LDP copy, per your request. |
Contributor
Author
|
@nicola - I'll be merging this PR later this week. last chance to protest :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements issue solid/solid#49, adds support for an
HTTP Copy verb that allows importing an external resource to a given Solid destination.