Home | History | Annotate | Download | only in examples

Lines Matching refs:Request

35 #define METHOD_ERROR "<html><head><title>Illegal request</title></head><body>Go away.</body></html>"
108 * Data kept per request.
110 struct Request
120 * a POST request).
125 * URL to serve in response to this POST (if this request
464 struct Request *request = cls;
465 struct Session *session = request->session;
524 * calls for this request; since the access handler may
527 * to easily associate some request-specific state.
534 * error while handling the request
547 struct Request *request;
552 request = *ptr;
553 if (NULL == request)
555 request = calloc (1, sizeof (struct Request));
556 if (NULL == request)
561 *ptr = request;
564 request->pp = MHD_create_post_processor (connection, 1024,
565 &post_iterator, request);
566 if (NULL == request->pp)
575 if (NULL == request->session)
577 request->session = get_session (connection);
578 if (NULL == request->session)
585 session = request->session;
590 MHD_post_process (request->pp,
599 MHD_destroy_post_processor (request->pp);
600 request->pp = NULL;
602 if (NULL != request->post_url)
603 url = request->post_url;
635 * Callback called upon completion of a request.
649 struct Request *request = *con_cls;
651 if (NULL == request)
653 if (NULL != request->session)
654 request->session->rc--;
655 if (NULL != request->pp)
656 MHD_destroy_post_processor (request->pp);
657 free (request);