-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
HTTPMethod.hasRequestBody .unlikely
#151
Comments
@Lukasa any insights here? |
I'm fine with us changing some cases of The issue I suspect @helje5 is mostly bothered by is the word choice. That's fair enough, For that matter, if there are RFCs that cover the body requirements for non-HTTP/1.1 methods that we can point to that justify changing |
If we tie the HTTPMethod to specific methods anyways, there is actually no reason for |
@Lukasa the enums are public public enum HTTPMethod: Equatable {
public enum HasBody {
case yes
case no
case unlikely
}
case GET
case PUT
case ACL
case HEAD
case POST
case COPY
case LOCK
case MOVE
case BIND
case LINK
case PATCH
case TRACE
case MKCOL
case MERGE
case PURGE
case NOTIFY
case SEARCH
case UNLOCK
case REBIND
case UNBIND
case REPORT
case DELETE
case UNLINK
case CONNECT
case MSEARCH
case OPTIONS
case PROPFIND
case CHECKOUT
case PROPPATCH
case SUBSCRIBE
case MKCALENDAR
case MKACTIVITY
case UNSUBSCRIBE
case RAW(value: String)
} |
@weissi I'm losing my mind in my old age |
@helje5 The problem with having |
we'll make this internal |
@Lukasa eek, my dashboard didn't show this as it was missing the ' So we could make this internal now and probably not break anybody. @Lukasa what do you think? |
Let’s do it. |
Motivation: HTTPMethod.hasRequestBody was unnecessarily public. Modifications: make it internal Result: fixes apple#151
@Lukasa done |
@weissi sounds good |
* make HTTPMethod.hasRequestBody internal Motivation: HTTPMethod.hasRequestBody was unnecessarily public. Modifications: make it internal Result: fixes #151 * Update public-api-changes-NIO1-to-NIO2.md
The 5.6 nightly images are available, let's use them.
The current implementation of
hasRequestBody
usesunlikely
for a lot of cases where a body is actuallyvery likely
or a plain.yes
(not sure what the different is, a PUT can also have an empty body).Examples MKCOL, PROPFIND, REPORT, MKCALENDAR, etc.
The text was updated successfully, but these errors were encountered: