R
R
Relrin2015-07-09 01:36:45
Apache HTTP Server
Relrin, 2015-07-09 01:36:45

Can I use a code snippet from open source software?

Now I am writing my own "REST framework" (if you can call it that), using websockets. While writing the code, there was a problem with parsing dynamic URLs (for example, /api/v1/{user}/{info}). In order to somehow push myself to some solutions, I started looking into the existing REST frameworks for how to work with such situations. As it turned out, parsing through regexps (both when adding and when a specific request like /api/v1/me/name has already arrived). The approach is generally similar, the solution code is minimally different.
Q: Can I borrow/use a code snippet (which handles such url cases) if these libraries are published under Apache 2/BSD 3/MIT licenses? If not,
P.S. I myself plan to publish the project under the MIT license

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2015-07-09
@Relrin

You are free to use, but must strictly comply with the license requirements regarding the use and distribution of this code.

S
sitev_ru, 2015-07-09
@sitev_ru

I also needed a similar task, I also thought about parsing through regexps ...
But at some stage I abandoned this idea and in 15 minutes sketched out my own code: Is there a universal URL parsing algorithm?
Suddenly it will help, no licenses are needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question