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 authored and ixti committed Feb 5, 2024
1 parent 8b802bf commit f7e16c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/http/request.rb
Original file line number Diff line number Diff line change
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 f7e16c8

Please sign in to comment.