ghttp_perform_POST_json   xtlang


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

Implementation

(bind-func ghttp_perform_POST_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_post)
                                        (ghttp_set_content_type_json request)
                                        (ghttp_set_body request bodystr (convert (strlen bodystr) i32))
                                        void))))))


Back to Index

Similar Entries

  • BTree_walk_postorder    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • Widget_find_postorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_walk_postorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • create_post_process_shader    xtlang    /digego/extempore/tree/v0.8.9/examples/external/shader-tutorials/framebuffer.xtm
  • curl_perform_request    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.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_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_perform_request_with_setup_fn    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
  • gui_find_leaf_postorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • json_array_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_decref    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_false_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_incref    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_integer_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_null_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_obj_iterator    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_object_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_object_print_keys    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_print_type    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_real_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_string_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_true_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_typeof    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • post    xtlang    /digego/extempore/tree/v0.8.9/examples/external/spectrogram.xtm
  • post:XTMRENDERCB    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/slideshow.xtm
  • post:XTMRENDERCB    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_vg.xtm
  • post:XTMRENDERCB    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • post:XTMRENDERCB    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/qr-code.xtm
  • postrender:XTMRENDERCB    xtlang    /digego/extempore/tree/v0.8.9/examples/external/xtmrender5.xtm
  • print_json_t    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • xtmdoc-export-caches-to-json    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • xtmdoc-write-alist-args-as-json    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • xtmdoc-write-alist-as-json    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm