コード例 #1
0
        public void Send()
        {
            req.RequireResponseNotSent();
            req.SetResponseSent();
            sent = true;

            unsafe {
                lock (instLock) {
                    Core.ice_core_fire_callback(callInfo, inst);
                    callInfo = null;
                    inst     = null;
                }
            }
        }
コード例 #2
0
 public unsafe Response(Request _req, CoreCallInfo *_callInfo)
 {
     req      = _req;
     callInfo = _callInfo;
     inst     = Core.ice_glue_create_response();
 }
コード例 #3
0
 public static extern unsafe CoreWriteStream *ice_glue_response_create_wstream(
     CoreResponse *resp
     );
コード例 #4
0
 public static extern unsafe bool ice_core_fire_callback(
     CoreCallInfo *call_info,
     CoreResponse *resp
     );
コード例 #5
0
 public static extern unsafe void ice_glue_response_add_header(
     CoreResponse *resp,
     string key,
     string value
     );
コード例 #6
0
 public static extern unsafe void ice_glue_response_set_cookie(
     CoreResponse *resp,
     string key,
     string value
     );
コード例 #7
0
 public static extern unsafe bool ice_glue_response_consume_rendered_template(
     CoreResponse *resp,
     System.IntPtr data
     );
コード例 #8
0
 public static extern unsafe void ice_glue_response_set_status(
     CoreResponse *resp,
     ushort status
     );
コード例 #9
0
 public static extern unsafe void ice_glue_response_set_file(
     CoreResponse *resp,
     string path
     );
コード例 #10
0
 public static extern unsafe void ice_glue_response_set_body(
     CoreResponse *resp,
     byte[] body,
     uint len
     );
コード例 #11
0
 public static extern unsafe void ice_glue_destroy_response(CoreResponse *resp);