From 13d8565b12f1064ef015749b0ea2deda1edb0925 Mon Sep 17 00:00:00 2001 From: relrelb Date: Fri, 24 Jun 2022 17:43:56 +0300 Subject: [PATCH] avm2: Implement `flash.net.URLRequestMethod` --- core/src/avm2/globals/flash/net/URLRequestMethod.as | 10 ++++++++++ core/src/avm2/globals/globals.as | 1 + 2 files changed, 11 insertions(+) create mode 100644 core/src/avm2/globals/flash/net/URLRequestMethod.as diff --git a/core/src/avm2/globals/flash/net/URLRequestMethod.as b/core/src/avm2/globals/flash/net/URLRequestMethod.as new file mode 100644 index 000000000..92a59ea23 --- /dev/null +++ b/core/src/avm2/globals/flash/net/URLRequestMethod.as @@ -0,0 +1,10 @@ +package flash.net { + public final class URLRequestMethod { + public static const POST: String = "POST"; + public static const GET: String = "GET"; + public static const PUT: String = "PUT"; + public static const DELETE: String = "DELETE"; + public static const HEAD: String = "HEAD"; + public static const OPTIONS: String = "OPTIONS"; + } +} diff --git a/core/src/avm2/globals/globals.as b/core/src/avm2/globals/globals.as index 2bf6f1b99..af35c1323 100644 --- a/core/src/avm2/globals/globals.as +++ b/core/src/avm2/globals/globals.as @@ -34,6 +34,7 @@ include "flash/geom/Point.as" include "flash/geom/Rectangle.as" include "flash/net/URLLoaderDataFormat.as" include "flash/net/URLRequestHeader.as" +include "flash/net/URLRequestMethod.as" include "flash/text/AntiAliasType.as" include "flash/text/FontStyle.as" include "flash/text/FontType.as"