CC: Tweaked

CC: Tweaked

42M Downloads

Other HTTP request methods

osmarks opened this issue ยท 3 comments

commented

Functions similar to http.post, but for PUT, DELETE and others, in order to access REST APIs more easily.

commented

Apologies for the delayed response. Someone has already submitted a PR which implements this to the main CC repo, but there are a few changes I'd like to see made before merging it.

commented

Mine still only supports like 7 methods...

commented

For reference, that's GET, POST, HEAD, OPTIONS, PUT, DELETE, TRACE. The only other REST method I've seen in common usage is PATCH, but one can always use X-HTTP-Method-Override for that.

I've looked into switching the entire API over to use Netty but it's non-trivial and, given the current state of CC, I'm not sure it's worth it right now.