Use abstract (to not disallow custom HTTP request methods)
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
package lime.net;
|
||||
|
||||
|
||||
enum HTTPRequestMethod {
|
||||
@:enum abstract HTTPRequestMethod(String) from String to String {
|
||||
|
||||
GET;
|
||||
POST;
|
||||
HEAD;
|
||||
PUT;
|
||||
DELETE;
|
||||
OPTIONS;
|
||||
CONNECT;
|
||||
public var DELETE = "DELETE";
|
||||
public var GET = "GET";
|
||||
public var HEAD = "HEAD";
|
||||
public var OPTIONS = "OPTIONS";
|
||||
public var POST = "POST";
|
||||
public var PUT = "PUT";
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user