Skip to content

Commit

Permalink
Add support for the PURGE HTTP method. (#757)
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 Oct 17, 2023
1 parent 1ba37c2 commit 68921ed
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 68921ed

Please sign in to comment.