lib/spiderfw/http/http.rb in spiderfw-0.6.25 vs lib/spiderfw/http/http.rb in spiderfw-0.6.26.pre1
- old
+ new
@@ -13,9 +13,14 @@
NAME_REGEX = /Content-Disposition:.* name="?([^\";]*)"?/ni.freeze
CONTENT_TYPE_REGEX = /Content-Type: (.*)\r\n/ni.freeze
FILENAME_REGEX = /Content-Disposition:.* filename="?([^\";]*)"?/ni.freeze
CRLF = "\r\n".freeze
EOL = CRLF
+
+ METHODS = [
+ :GET, :POST, :PUT, :DELETE, :HEAD, :TRACE, :CONNECT,
+ :PROPFIND, :PROPPATCH, :MKCOL, :COPY, :MOVE, :LOCK, :UNLOCK
+ ]
module StatusCodes
CONTINUE = 100
SWITCHING_PROTOCOLS = 101
\ No newline at end of file