Skip to content

Conversation

@e-e-e
Copy link
Member

@e-e-e e-e-e commented Feb 9, 2018

@bcomnes this is a merge of our two http interfaces - do you want to have a look over and let me know what you think.

This will close these issues:
#15
#11

@bcomnes
Copy link
Collaborator

bcomnes commented Feb 9, 2018

Do you see any advantages to one or the other (yours seems more complete)?

@e-e-e
Copy link
Member Author

e-e-e commented Feb 9, 2018

For me the main thing that the current implementation misses is the ability to use relative file paths from a base path. Without this its not possible to use as a drop in replacement for dat storage.

The other advantage of this implementation would be that it should be usable in the browser too - as its using axios rather than node by default.

Other than those our implementations are pretty similar.

@e-e-e
Copy link
Member Author

e-e-e commented Feb 9, 2018

I originally wrote my implementation for this - https://github.com/e-e-e/dat-http-proxy.

@bcomnes
Copy link
Collaborator

bcomnes commented Feb 9, 2018

Want to just merge the repos replacing my older implementation with yours and keep the more consistent random-access-http name?

@e-e-e
Copy link
Member Author

e-e-e commented Feb 9, 2018

That was my original thought - but actually i ended up grabbing details from yours for this branch too. All the checks on content-length are from your implementation.

@e-e-e
Copy link
Member Author

e-e-e commented Feb 9, 2018

I feel like this branch is the combination of both of our work - is there anything you see missing?

Copy link
Collaborator

@bcomnes bcomnes left a comment

Choose a reason for hiding this comment

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

LGTM added you as an npm publisher so you can publish freely.

@bcomnes
Copy link
Collaborator

bcomnes commented Feb 9, 2018

I'll let you merge when ready

@e-e-e
Copy link
Member Author

e-e-e commented Feb 9, 2018

Awesome @bcomnes thanks. I will do a major version bump and publish shortly.

@e-e-e e-e-e merged commit 4104dce into master Feb 9, 2018
@e-e-e e-e-e deleted the merge-with-http-random-access branch February 9, 2018 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants