Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for non-standard HTTP methods #316

Merged
merged 3 commits into from
Aug 30, 2012
Merged

Added support for non-standard HTTP methods #316

merged 3 commits into from
Aug 30, 2012

Conversation

jhoerr
Copy link
Contributor

@jhoerr jhoerr commented Aug 29, 2012

IHttp now supports non-standard HTTP methods ("COPY", "MOVE", "PROPFIND", etc.) through AsGet{Async} and AsPost{Async}. These will take the httpMethod argument and apply it to the web request when it is built. The AsGet/AsPost determines how parameters are applied to the request. The changes in 29f2f7a and 88543d8 were reverted prior to committing a0f67ed.

Can now execute arbitrary HTTP methods (such as "copy" or "move") using
get- or post-style request semantics.  Added sync and async support for
both.  Refactored a bit of RestClient.Sync and RestClient.Async to
facilitate this.
@ayoung
Copy link
Contributor

ayoung commented Aug 29, 2012

Thanks for the request. Changes look good to me. I'll probably run a pull request marathon tonight. Looks like the queue is backed up.

@jhoerr
Copy link
Contributor Author

jhoerr commented Aug 29, 2012

Excellent -- thank you!

@ayoung ayoung merged commit a0f67ed into restsharp:master Aug 30, 2012
@ayoung
Copy link
Contributor

ayoung commented Aug 30, 2012

Its in. Thanks!

@stefann42
Copy link

Thanks for implementing this! Will be using to call a WebDAV service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants