Hi, it looks like Foundation on Darwin capitalises certain HTTP
methods but not others:

```
let methods = ["get", "head", "post", "put", "delete", "connect",
"options", "trace", "patch"]

var x = URLRequest(url: URL(string: "/hello")!)

for m in methods {
    x.httpMethod = m
    print(x.httpMethod!)
}
```

Output on Darwin:
GET
HEAD
POST
PUT
DELETE
CONNECT
options
trace
patch

Currently on Linux we don't do any capitalization so I'd like to fix this.

Is my list of 6 methods above the definitive list of which HTTP
methods should be capitalized?

Thanks,

-- 
Ian Partridge
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to