Skip to content

Commit

Permalink
Add support for the PURGE HTTP method.
Browse files Browse the repository at this point in the history
This method is used by several caching servers, like Squid, Varnish or Fastly.
  • Loading branch information
renchap committed Jul 28, 2023
1 parent 9bfcdfb commit a4470a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/http/request.rb
Expand Up @@ -49,7 +49,10 @@ class UnsupportedSchemeError < RequestError; end
:search,

# RFC 4791: Calendaring Extensions to WebDAV -- CalDAV
:mkcalendar
:mkcalendar,

# Implemented by several caching servers, like Squid, Varnish or Fastly
:purge
].freeze

# Allowed schemes
Expand Down

0 comments on commit a4470a8

Please sign in to comment.