ghttp_request_body_as_json   xtlang


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

Implementation

;; TODO should check for Content-Type
(bind-func ghttp_request_body_as_json
  (lambda (request:ghttp_request*)
    (let ((err:json_error_t* (zalloc)))
      (let ((json (json_loadb (ghttp_get_body request)
                              (convert (ghttp_get_body_len request))
                              0
                              err)))
        ;; (if (null? json)
        ;;     (printf "JSON error on line %d: %s\n" (tref err 0) (tref err 4)))
        (ghttp_request_destroy request)
        json))))


Back to Index

Similar Entries

  • Casec    xtlang
  • Casech    xtlang
  • Casin    xtlang
  • Casinh    xtlang
  • Complex_phase    xtlang
  • Complex_phase    xtlang
  • Complex_phase2    xtlang
  • PARAM_OSC1_PHASE    scheme
  • PARAM_OSC2_PHASE    scheme
  • PARAM_OSC3_PHASE    scheme
  • PARAM_OSC4_PHASE    scheme
  • PaStreamCallbackTimeInfo_print    xtlang
  • PaStreamCallbackTimeInfo_toString    xtlang
  • PaStreamInfo_print    xtlang
  • PaStreamInfo_toString    xtlang
  • PaStreamParameters_print    xtlang
  • PaStreamParameters_toString    xtlang
  • aiProcess_ValidateDataStructure    scheme
  • analogue_drwho_bass    xtlang
  • analogue_oxygene_bass    xtlang
  • analogue_oxygene_bass    xtlang
  • assimp_load_model    xtlang
  • assimp_load_model    xtlang
  • assimp_load_model    scheme
  • assoc    scheme
  • assq    scheme
  • assv    scheme
  • astra    scheme
  • astra_bitmapmask_t    xtlang
  • astra_readX    xtlang
  • astra_reader    xtlang
  • astra_sensor    xtlang
  • astra_start_body    xtlang
  • astra_start_rgb    xtlang
  • astra_stop    xtlang
  • async    xtlang
  • async    xtlang
  • async_done    xtlang
  • async_kill    xtlang
  • audio_callback:PaStreamCallback    xtlang
  • audio_callback:PaStreamCallback    xtlang
  • axiom-of-association    macro
  • axiom-of-association?    scheme
  • basic_note    xtlang
  • bass    scheme
  • bind-alias    macro
  • call-as-xtlang    macro
  • call-as-xtlang-leaky    macro
  • cas    macro
  • cas-xtm-to-string    scheme
  • cas2sexpr    scheme
  • cas2xtm    xtlang
  • cas2xtm_scm    xtlang
  • cas_expand_term    xtlang
  • cas_parse_terms    xtlang
  • caspp    xtlang
  • casppoff    xtlang
  • casppon    xtlang
  • casq    macro
  • cef_init_base    xtlang
  • cerberus_extras_cc    xtlang
  • cl:assoc-adjoin    scheme
  • cl:assoc-union    scheme
  • cl:butlast    scheme
  • cl:has-duplicates?    scheme
  • cl:last    scheme
  • curl_perform_request    xtlang
  • curl_request    xtlang
  • curl_request_with_auth    xtlang
  • curl_request_with_header    xtlang
  • curl_setopts_basic    xtlang
  • dl_base_frq    xtlang
  • dl_base_frq    xtlang
  • dl_base_frq_scale    xtlang
  • dl_base_frq_scale    xtlang
  • dl_osc1_phase    xtlang
  • dl_osc1_phase    xtlang
  • dl_osc2_phase    xtlang
  • dl_osc2_phase    xtlang
  • draw_color_body_frame    xtlang
  • draw_color_body_frame_with_hands    xtlang
  • extras_cc    xtlang
  • fastsin    xtlang
  • fluid-cube-get-last-column    xtlang
  • fluid-cube-get-last-row    xtlang
  • fluid-cube-set-last-column    xtlang
  • fluid-cube-set-last-row    xtlang
  • generic-assoc    scheme
  • 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_perform_request_with_setup_fn    xtlang
  • ghttp_print_request_body    xtlang
  • ghttp_print_request_full    xtlang
  • ghttp_print_request_headers    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
  • godot_string_ascii    xtlang
  • godot_variant_as_int    xtlang
  • godot_variant_as_object    xtlang
  • godot_variant_as_real    xtlang
  • godot_variant_as_string    xtlang
  • godot_variant_new_basis    xtlang
  • gui_keyrelease_p    xtlang
  • has_document    xtlang
  • has_one_ref    xtlang
  • impc:aot:insert-typealias-binding-details    scheme
  • impc:compiler:print-bad-type-error-with-ast    scheme
  • impc:compiler:print-variable-not-marked-as-free-error    scheme
  • impc:ir:compiler:bitcast    scheme
  • impc:ir:get-base-type    scheme
  • impc:ir:get-base-type-g    scheme
  • impc:ti:bitcast-check    scheme
  • impc:ti:get-closure-body    scheme
  • impc:ti:get-generic-type-as-tuple    scheme
  • impc:ti:get-typealias-docstring    scheme
  • impc:ti:get-typealias-ground-type    scheme
  • impc:ti:get-typealias-ground-type-pretty    scheme
  • impc:ti:get-typealias-type    scheme
  • impc:ti:get-typealias-type-pretty    scheme
  • impc:ti:numeric-cast-operator    scheme
  • impc:ti:print-typealias-cache    scheme
  • impc:ti:register-new-typealias    scheme
  • impc:ti:reset-typealias-cache    scheme
  • impc:ti:set-closure-body    scheme
  • impc:ti:set-typealias-docstring    scheme
  • impc:ti:typealias-exists?    scheme
  • impc:ti:word-downcase    scheme
  • impc:ti:word-upcase    scheme
  • 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
  • kinect_print_body    xtlang
  • kinect_update_body    xtlang
  • last    scheme
  • last    xtlang
  • last-pair    scheme
  • llvm:asm    macro
  • load_assim_material_texture    xtlang
  • ocv_scheme_release_object    xtlang
  • ocv_scheme_release_window    xtlang
  • p:assert-match    scheme
  • passthrough-frag    scheme
  • passthrough-vert    scheme
  • phase_vocoder_PV    xtlang
  • phase_vocoder_iPL    xtlang
  • phase_vocoder_sPL    xtlang
  • print_json_t    xtlang
  • psystem_alphas    xtlang
  • register_class    xtlang
  • release    xtlang
  • request    xtlang
  • scmcas    scheme
  • send-fluid-last-row-osc    xtlang
  • send_request    xtlang
  • set_up_request_socket    xtlang
  • sexpr2cas    scheme
  • sys_file_datasync    xtlang
  • sys_file_datasync    xtlang
  • test_assoc_1    xtlang
  • type_class_test    xtlang
  • world_ascii_print    xtlang
  • world_basic_print    xtlang
  • xobj_add_class    xtlang
  • xobj_class_exists    xtlang
  • xobj_database    xtlang
  • xobj_print_class    xtlang
  • xobj_print_classes    xtlang
  • xtm-dump-asm    macro
  • xtm_asm_dump    xtlang
  • xtm_envmap_as_skybox    xtlang
  • xtm_release_note    xtlang
  • xtmcas    scheme
  • xtmdoc-export-caches-to-json    scheme
  • xtmdoc-typealias-handler    scheme
  • xtmdoc-write-alist-args-as-json    scheme
  • xtmdoc-write-alist-as-json    scheme
  • xtmtest-result-body    scheme
  • xtmtest-result-body    scheme
  • xtmtest-with-fixture-body    scheme
  • xtmtest-with-fixture-body    scheme