This is a library that allows you to spell out the...
# announcements
r
This is a library that allows you to spell out the htpp status codes extensively. https://github.com/Romavic/HttpStatusCode
g
Not sure that I like this way to check status code:
response.code() == SuccessfulStatusCode.Ok
instead would prefer something like
Copy code
when (response.code()) {
   SuccessfulStatusCode.Ok -> {}
}
It’s not thread safe, and I really don’t understand why you need this: https://github.com/Romavic/HttpStatusCode/blob/master/httpstatuscodeRomavicdosanjos/src/main/java/ao/httpstatuscode/romavicdosanjos/statusCode/SuccessfulStatusCode.kt#L9 It will cause very bad bugs, when 2 threads checking status code from the same object
1
why not just return status code?
I created an issue to let potential users of library know about this issue
r
I see your issues... And I already to resolved... Please see...and add your sugestion, about this new update on the library.