static int QPYX_GetRequestHeader_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         UnityEngine.Networking.UnityWebRequest QPYX_obj_YXQP = (UnityEngine.Networking.UnityWebRequest)ToLua.CheckObject <UnityEngine.Networking.UnityWebRequest>(L_YXQP, 1);
         string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 2);
         string QPYX_o_YXQP    = QPYX_obj_YXQP.GetRequestHeader(QPYX_arg0_YXQP);
         LuaDLL.lua_pushstring(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
 static int GetRequestHeader(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Networking.UnityWebRequest obj = (UnityEngine.Networking.UnityWebRequest)ToLua.CheckObject <UnityEngine.Networking.UnityWebRequest>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         string o    = obj.GetRequestHeader(arg0);
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Get the Content-Type of request header.
 /// </summary>
 /// <param name="request">The <see cref="UnityEngine.Networking.UnityWebRequest"/> object.</param>
 /// <returns>The Content-Type of request header. </returns>
 public static string GetRequestContentType(this UnityWebRequest request) =>
 request.GetRequestHeader(HeaderContentTypeName);