Module GapiMediaResource
type destination=|TargetFile of string|StringBuffer of Stdlib.Buffer.t|ArrayBuffer of (char, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.ttype download={destination : destination;range_spec : string;}
val destination : (download, destination) GapiLens.tval range_spec : (download, string) GapiLens.tval create_out_channel : download -> Netchannels.out_obj_channelval create_in_channel : ?discard_on_close:bool -> download -> Netchannels.in_obj_channelval generate_download_headers : download -> GapiCore.Header.t listval generate_range_spec : (int64 option * int64 option) list -> string
type source=|File of string|String of string|Buffer of (char, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.ttype t={source : source;name : string;content_type : string;content_length : int64;}
val source : (t, source) GapiLens.tval name : (t, string) GapiLens.tval content_type : (t, string) GapiLens.tval content_length : (t, int64) GapiLens.t
type state=|Request|Uploading|Done|Errortype upload_state={state : state;resource : t;chunk_size : int;current_offset : int64;}
val state : (upload_state, state) GapiLens.tval resource : (upload_state, t) GapiLens.tval chunk_size : (upload_state, int) GapiLens.tval current_offset : (upload_state, int64) GapiLens.tval create_file_resource : ?content_type:string -> string -> tval setup_upload : ?chunk_size:int -> t -> upload_stateval setup_file_upload : ?chunk_size:int -> string -> upload_stateval generate_upload_headers : GapiCore.HttpMethod.t -> upload_state -> GapiCore.Header.t listval update_upload_state : string -> upload_state -> upload_stateval get_post_data : upload_state -> GapiCore.PostData.t