ipkn / crow

Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)
BSD 3-Clause "New" or "Revised" License
7.48k stars 891 forks source link

does it support rest? #218

Open introspection3 opened 7 years ago

introspection3 commented 7 years ago

does it support upload file binary result cookie

pierobot commented 7 years ago

upload file

No. You'd have to write additional code into the server to handle file uploads efficiently. But if you need something quick and dirty, then you could append the file contents to the request. It'll probably be really slow and resource intensive for large files though.

I've yet to try out the new websockets but it might be possible to do so with this.

binary result

Yes, you can return any sort of binary data in a std::string so long as you set Content-Type to the appropriate value. For an example see: https://github.com/ipkn/crow/issues/116#issuecomment-184385528

cookie

Yes, there is crow::CookieParser