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    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • Widget_with_cb    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • bindfunc_with_docstring    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/aot-compilation.xtm
  • bindfunc_with_zone_size    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/aot-compilation.xtm
  • bindfunc_with_zone_size_and_docstring    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/aot-compilation.xtm
  • call-with-input-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • call-with-output-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • curl_perform_request    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_request    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_request_with_auth    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_request_with_header    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_setup    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • define-with-return    macro    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • draw_color_body_frame_with_hands    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/orbbec_test.xtm
  • fill_buffer_with_file    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • get_request_handler    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • ghttp_copy_request_body_into_buffer    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_DELETE    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_GET    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_POST_default    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_POST_json    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_POST_string    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_PUT_default    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_PUT_json    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_PUT_string    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_print_request_body    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_print_request_full    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_print_request_headers    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_request_body_as_json    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_set_content_type_html    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_set_content_type_json    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_set_content_type_octet_stream    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_set_content_type_plaintext    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_set_extempore_user_agent    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • gl_print_error_with_msg    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • gl_setup    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • gui_find_widget_with_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • impc:compiler:print-bad-type-error-with-ast    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ir:compiler:heap-alloc-with-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:heap-alloc-without-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:stack-alloc-with-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:stack-alloc-without-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:zone-alloc-with-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:zone-alloc-without-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:genericfunc-type-setup    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:initialize-closure-with-new-zone    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • ipc:proc-name-with-mapping    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make-list-with-proc    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make-vector-with-proc    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • pm_device_with_id    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/midisetup.xtm
  • pm_input_device_with_name    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • pm_output_device_with_name    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • print-with-colors    macro    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • qr_create_with_level    xtlang    /digego/extempore/tree/v0.8.9/libs/external/qr-code.xtm
  • request    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm
  • return_ptr_gv_first_with_docstring    xtlang    /digego/extempore/tree/v0.8.9/tests/core/aot-compilation.xtm
  • return_ptr_gv_second_with_docstring    xtlang    /digego/extempore/tree/v0.8.9/tests/core/aot-compilation.xtm
  • send_request    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg-request.xtm
  • set_cairo_source_with_colour    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/spectral_meter.xtm
  • set_up_request_socket    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm
  • shader_setup_convolution_filter    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • sys:with-noisy-compiler    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • sys:with-quiet-compiler    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • texture_setup    xtlang    /digego/extempore/tree/v0.8.9/examples/external/shader-tutorials/texture.xtm
  • thread_native_call_with_zone    xtlang    /digego/extempore/tree/v0.8.9/libs/core/xthread.xtm
  • unzip1-with-cdr    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • unzip1-with-cdr-iterative    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • with-input-from-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • with-input-output-from-to-files    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • with-output-to-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • world_texture_setup    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/game-of-life.xtm
  • xtm-setup-and-start-gl-loop    scheme    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline-scm.xtm
  • xtmtest-with-fixture    macro    /digego/extempore/tree/v0.8.9/libs/core/test.xtm
  • xtmtest-with-fixture-body    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • xtmtest-with-fixture-body    scheme    /digego/extempore/tree/v0.8.9/libs/core/test.xtm