ghttp_perform_request_with_setup_fn   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm

Implementation

(bind-func ghttp_perform_request_with_setup_fn
  (lambda (uri:i8* setup_fn:[void,ghttp_request*]*)
    (let ((request:ghttp_request* (ghttp_request_new)))
      (ghttp_set_extempore_user_agent request)
      (if (= (ghttp_set_uri request uri) -1)
          (begin (println "Error: invalid URI")
                 (ghttp_request_destroy request)
                 null)
          (begin
            (setup_fn request)
            (ghttp_prepare request)
            (if (= (ghttp_process request) ghttp_error)
                (begin ;; (println "ghttp Error:" (ghttp_get_error request))
                       (ghttp_request_destroy request)
                       null)
                request))))))


Back to Index

Similar Entries

  • FBO_create_with_textures    xtlang
  • Widget_with_cb    xtlang
  • bindfunc_with_docstring    xtlang
  • bindfunc_with_zone_size    xtlang
  • bindfunc_with_zone_size_and_docstring    xtlang
  • call-with-input-file    scheme
  • call-with-output-file    scheme
  • curl_perform_request    xtlang
  • curl_request    xtlang
  • curl_request_with_auth    xtlang
  • curl_request_with_header    xtlang
  • curl_setup    xtlang
  • define-with-return    macro
  • draw_color_body_frame_with_hands    xtlang
  • fill_buffer_with_file    xtlang
  • get_request_handler    xtlang
  • ghttp_copy_request_body_into_buffer    xtlang
  • ghttp_perform_DELETE    xtlang
  • ghttp_perform_GET    xtlang
  • ghttp_perform_POST_default    xtlang
  • ghttp_perform_POST_json    xtlang
  • ghttp_perform_POST_string    xtlang
  • ghttp_perform_PUT_default    xtlang
  • ghttp_perform_PUT_json    xtlang
  • ghttp_perform_PUT_string    xtlang
  • ghttp_print_request_body    xtlang
  • ghttp_print_request_full    xtlang
  • ghttp_print_request_headers    xtlang
  • ghttp_request_body_as_json    xtlang
  • ghttp_set_content_type_html    xtlang
  • ghttp_set_content_type_json    xtlang
  • ghttp_set_content_type_octet_stream    xtlang
  • ghttp_set_content_type_plaintext    xtlang
  • ghttp_set_extempore_user_agent    xtlang
  • gl_print_error_with_msg    xtlang
  • gl_setup    xtlang
  • gui_find_widget_with_id    xtlang
  • impc:compiler:print-bad-type-error-with-ast    scheme
  • impc:ir:compiler:heap-alloc-with-size    scheme
  • impc:ir:compiler:heap-alloc-without-size    scheme
  • impc:ir:compiler:stack-alloc-with-size    scheme
  • impc:ir:compiler:stack-alloc-without-size    scheme
  • impc:ir:compiler:zone-alloc-with-size    scheme
  • impc:ir:compiler:zone-alloc-without-size    scheme
  • impc:ir:genericfunc-type-setup    scheme
  • impc:ti:initialize-closure-with-new-zone    scheme
  • ipc:proc-name-with-mapping    scheme
  • make-list-with-proc    scheme
  • make-vector-with-proc    scheme
  • pm_device_with_id    xtlang
  • pm_input_device_with_name    xtlang
  • pm_output_device_with_name    xtlang
  • print-with-colors    macro
  • qr_create_with_level    xtlang
  • request    xtlang
  • return_ptr_gv_first_with_docstring    xtlang
  • return_ptr_gv_second_with_docstring    xtlang
  • send_request    xtlang
  • set_cairo_source_with_colour    xtlang
  • set_up_request_socket    xtlang
  • shader_setup_convolution_filter    xtlang
  • sys:with-noisy-compiler    macro
  • sys:with-quiet-compiler    macro
  • texture_setup    xtlang
  • thread_native_call_with_zone    xtlang
  • unzip1-with-cdr    scheme
  • unzip1-with-cdr-iterative    scheme
  • with-input-from-file    scheme
  • with-input-output-from-to-files    scheme
  • with-output-to-file    scheme
  • world_texture_setup    xtlang
  • xtm-setup-and-start-gl-loop    scheme
  • xtmtest-with-fixture    macro
  • xtmtest-with-fixture-body    scheme
  • xtmtest-with-fixture-body    scheme