varnish/libvmod-curl — pull request #7 by chino (2013-05-11 04:55:49+00:00)
Title: Add custom request method

This should take care of issue #5.

Basically adds a new `custom_method( STRING )` function that accepts the method you would like to send instead of the standard GET/HEAD/POST.

After running it you still have to call the normal get/head/post methods since that defines which code patch libcurl will take per the docs.

Example:

```ruby
# send a PURGE request
# libcurl will use still perform a normal get()
# but use PURGE as the request method
curl.custom_method("PURGE");
curl.get("http://example.com/uri");
```

See CURLOPT_CUSTOMREQUEST on http://curl.haxx.se/libcurl/c/curl_easy_setopt.html