예제 #1
0
 public void End(HttpResponse resp)
 {
     requireValid();
     unsafe {
         Core.ice_http_server_endpoint_context_end_with_response(
             inst,
             resp.Take()
             );
         inst = null;
     }
 }
예제 #2
0
        public unsafe void endpointCallback(
            CoreEndpointContext *rawCtx,
            CoreHttpRequest *rawReq,
            CoreResource *call_with
            )
        {
            EndpointContext ctx = new EndpointContext(rawCtx);
            HttpRequest     req = new HttpRequest(rawReq);

            realEndpointCallback(ctx, req);
        }
예제 #3
0
 public static extern unsafe bool ice_http_server_endpoint_context_end_with_response(
     CoreEndpointContext *ctx,
     CoreHttpResponse *resp
     );
예제 #4
0
 public unsafe EndpointContext(CoreEndpointContext *_inst)
 {
     inst = _inst;
 }