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