Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Have you ever considered using constexpr std::string_view instead of const std::string?
-
@dfox I'm POSTing
https://devrant.com/api/user/...
...but getting 405 method not allowed. Is this part of the API no longer available or am I stupid? -
@Krokoklemme On Linux, std::string is the best as it usually grabs the current chartype (In many cases this will be UTF-8, which I want)
-
@AlgoRythm that's not what I mean
Why do you take it by value? SBO usually won't occur on strings found around here -
Ohh, and std::string won't grab the UTF-8 chartype (such a thing doesn't exist)
It's an alias for std::basic_string<char> and is everything but suitable to be used with utf-8 (should be fine around here though, considering all text here is plain English) -
dfox426036y@AlgoRythm the auth endpoint was never enabled for cross-origin requests, so it can’t be hit directly from a browser.
-
@dfox Should be sent from the server itself, not the browser. On Android I get FileNotFoundException.
-
dfox426036y@AlgoRythm ah, yeah then it should work. I think you have wrong url, it should be /users I think
-
@Kyu96 It's gone. In a VM that I fried in a bored rage. This is the only fossil of it's existence.
It's easy to set up yourself though I did it in about five minutes.
devarant syntax highlighting on a devRant c++ API
devrant