ghttp_perform_PUT_json   xtlang


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

Implementation

(bind-func ghttp_perform_PUT_json
  (lambda (uri:i8* body:json_t*)
    (let ((bodystr (json_dumps body 0)))
      (if (null? bodystr)
          (begin (println "Error dumping json to string: " body)
                 null)
          (ghttp_perform_request_with_setup_fn uri
                                      (lambda (request:ghttp_request*)
                                        (ghttp_set_type request ghttp_type_put)
                                        (ghttp_set_content_type_json request)
                                        (ghttp_set_body request bodystr (convert (strlen bodystr) i32))
                                        void))))))


Back to Index

Similar Entries

  • call-with-input-file    scheme
  • call-with-output-file    scheme
  • curl_perform_request    xtlang
  • filter_input    xtlang
  • filter_inputs    xtlang
  • filter_output    xtlang
  • filter_outputs    xtlang
  • get-midi-input-device-names-alist    scheme
  • get-midi-output-device-names-alist    scheme
  • 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_string    xtlang
  • ghttp_perform_request_with_setup_fn    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
  • input-output-port?    scheme
  • input_80211    xtlang
  • json_array_p    xtlang
  • json_decref    xtlang
  • json_false_p    xtlang
  • json_incref    xtlang
  • json_integer_p    xtlang
  • json_null_p    xtlang
  • json_obj_iterator    xtlang
  • json_object_p    xtlang
  • json_object_print_keys    xtlang
  • json_print_type    xtlang
  • json_real_p    xtlang
  • json_string_p    xtlang
  • json_true_p    xtlang
  • json_typeof    xtlang
  • midi_input_polling    xtlang
  • midi_input_port_id    xtlang
  • midi_output_port_id    xtlang
  • ocv_puttext    xtlang
  • output_80211    xtlang
  • pa_params_for_input_device    xtlang
  • pa_params_for_output_device    xtlang
  • pm_create_input_stream    xtlang
  • pm_create_output_stream    xtlang
  • pm_device_input_p    xtlang
  • pm_device_output_p    xtlang
  • pm_input_device_with_name    xtlang
  • pm_output_device_with_name    xtlang
  • print_json_t    xtlang
  • sys_file_putc    xtlang
  • sys_file_puts    xtlang
  • with-input-from-file    scheme
  • with-input-output-from-to-files    scheme
  • with-output-to-file    scheme
  • xtmdoc-export-caches-to-json    scheme
  • xtmdoc-write-alist-args-as-json    scheme
  • xtmdoc-write-alist-as-json    scheme