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
  • Widget_find_postorder    xtlang
  • Widget_walk_postorder    xtlang
  • create_post_process_shader    xtlang
  • curl_perform_request    xtlang
  • ghttp_copy_request_body_into_buffer    xtlang
  • ghttp_perform_DELETE    xtlang
  • ghttp_perform_GET    xtlang
  • ghttp_perform_POST_default    xtlang
  • ghttp_perform_POST_string    xtlang
  • ghttp_perform_PUT_default    xtlang
  • ghttp_perform_PUT_json    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
  • gui_find_leaf_postorder    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
  • post    xtlang
  • post:XTMRENDERCB    xtlang
  • post:XTMRENDERCB    xtlang
  • post:XTMRENDERCB    xtlang
  • post:XTMRENDERCB    xtlang
  • postrender:XTMRENDERCB    xtlang
  • print_json_t    xtlang
  • xtmdoc-export-caches-to-json    scheme
  • xtmdoc-write-alist-args-as-json    scheme
  • xtmdoc-write-alist-as-json    scheme