You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2017/04/17 03:16:38 UTC

git commit: [flex-asjs] [refs/heads/develop] - Add FORM_URL_ENCODED constant. Improve comments.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 060f9820f -> 1bb875968


Add FORM_URL_ENCODED constant. Improve comments.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1bb87596
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1bb87596
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1bb87596

Branch: refs/heads/develop
Commit: 1bb87596817e4cef598f6b14b725c55cf9612915
Parents: 060f982
Author: Justin Mclean <jm...@apache.org>
Authored: Mon Apr 17 09:52:03 2017 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Mon Apr 17 09:52:03 2017 +1000

----------------------------------------------------------------------
 .../flex/org/apache/flex/net/HTTPConstants.as   | 30 ++++++++++++++++----
 .../flex/org/apache/flex/net/HTTPService.as     |  2 +-
 .../main/flex/org/apache/flex/net/URLRequest.as |  2 +-
 3 files changed, 26 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bb87596/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPConstants.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPConstants.as b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPConstants.as
index 7060966..b36274d 100644
--- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPConstants.as
+++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPConstants.as
@@ -21,7 +21,9 @@ package org.apache.flex.net
     public final class HTTPConstants extends Object
     {
         /**
-         *  
+         *
+		 *  HTTP GET request.
+		 *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -30,7 +32,9 @@ package org.apache.flex.net
         public static const GET:String = "GET";
         
         /**
-         *  
+         *
+		 *  HTTP Post request.
+		 *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -39,7 +43,8 @@ package org.apache.flex.net
         public static const POST:String = "POST";
         
         /**
-         *  
+         *  HTTP Put request.
+		 *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -48,14 +53,27 @@ package org.apache.flex.net
         public static const PUT:String = "PUT";
         
         /**
-         *  
+         *
+		 *  HTTP form url encoded.
+		 *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
          *  @productversion FlexJS 0.0
          */
-        public static const DELETE:String = "DELETE";
-        
+        public static const FORM_URL_ENCODED:String = "application/x-www-form-urlencoded";
+
+		/**
+		 *
+		 *  HTTP delete request.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public static const DELETE:String = "DELETE";
+
 		/**
 		 *  Dispatched when the connection is opened.
 		 *  

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bb87596/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPService.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPService.as b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPService.as
index ea3b7b3..5578b63 100644
--- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPService.as
+++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPService.as
@@ -119,7 +119,7 @@ package org.apache.flex.net
             }
 		}
 		
-		private var _contentType:String = "application/x-www-form-urlencoded";
+		private var _contentType:String = HTTPConstants.FORM_URL_ENCODED;
         
         /**
          *  @copy org.apache.flex.net.BinaryUploader#contentType

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bb87596/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLRequest.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLRequest.as b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLRequest.as
index 3c39f50..80924bf 100644
--- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLRequest.as
+++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLRequest.as
@@ -59,7 +59,7 @@ package org.apache.flex.net
 		 *  @playerversion AIR 2.6
 		 *  @productversion FlexJS 0.7.0
 		 */	
-        public var contentType:String = "application/x-www-form-urlencoded";
+        public var contentType:String = HTTPConstants.FORM_URL_ENCODED;
 		
 		/**
 		 *   Controls the HTTP form submission method.