Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTful web server #57

Closed
DJuego opened this issue Apr 23, 2018 · 4 comments
Closed

RESTful web server #57

DJuego opened this issue Apr 23, 2018 · 4 comments

Comments

@DJuego
Copy link

DJuego commented Apr 23, 2018

Thank you for this project! Thank you for your effort!

Header-only, no dependencies. cross-platform, light and elegant... It's the closest thing to the solution I was looking for.

Only I miss a more complete interface (with PUT and DELETE and perhaps, others). Any reason not to implement those features?

In any case I am not an expert and I think that what your project offers is enough for my purposes. :-)

Thanks again!

DJuego

@yhirose
Copy link
Owner

yhirose commented Apr 24, 2018

@DJuego, thank you for the feedback. There wasn't any particular reason why I haven't implemented other methods like PUT and DELETE. I only needed GET and POST when I wrote this library. I may add missing HTTP methods in the future. Thanks for asking!

@yhirose
Copy link
Owner

yhirose commented May 5, 2018

Also need OPTIONS (#62).

@yhirose
Copy link
Owner

yhirose commented May 5, 2018

Providing Server::delete method is not possible since delete is a C++ reserved keyword. So we have to compromise to choose a different name like del. Or we could use DELETE. If we choose such a word with all capital letters, I guess others like get, head and post also should be changed to GET, HEAD, and POST for consistency. It'll cause a breaking change, but it seems like that's the way we should take.

@DJuego
Copy link
Author

DJuego commented May 6, 2018

Yes. I like DELETE (and POST, GET, HEAD of course). I don´t like "del". I do not feel "standard".

Another option is "Delete" And so; Post, Get, Head,

I have no problems with breaking changes for this feature. It is a great step that deserves it.

I've been using cpp-httplib on Windows and I'm really satisfied. Now I want to try Linux. ;-)

I begin to feel the need for a more complete interface. I need to be able to respond to requests from other projects that make requests that I can not handle (PUT, DELETE ...)

Please, any progress in that regard would be greatly welcome!! Thanks

DJuego

yhirose added a commit that referenced this issue May 7, 2018
yhirose added a commit that referenced this issue May 7, 2018
@yhirose yhirose closed this as completed in 6c5d0b2 May 9, 2018
yhirose added a commit that referenced this issue May 9, 2018
ExclusiveOrange pushed a commit to ExclusiveOrange/cpp-httplib-exor that referenced this issue May 2, 2023
ExclusiveOrange pushed a commit to ExclusiveOrange/cpp-httplib-exor that referenced this issue May 2, 2023
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

No branches or pull requests

2 participants