import{_ as t,a as n,p as e,b as r}from"./tauri-ecac0ad6.js";var i,u;function o(r){return t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,e({cmd:"httpRequest",options:r})];case 1:return[2,t.sent()]}}))}))}!function(t){t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary"}(i||(i={})),function(t){t[t.Form=1]="Form",t[t.File=2]="File",t[t.Auto=3]="Auto"}(u||(u={}));var s={request:o,get:function(e,i){return t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,o(r({method:"GET",url:e},i))];case 1:return[2,t.sent()]}}))}))},post:function(e,i,u){return t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,o(r({method:"POST",url:e,body:i},u))];case 1:return[2,t.sent()]}}))}))},put:function(e,i,u){return t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,o(r({method:"PUT",url:e,body:i},u))];case 1:return[2,t.sent()]}}))}))},patch:function(e,i){return t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,o(r({method:"PATCH",url:e},i))];case 1:return[2,t.sent()]}}))}))},delete:function(e,i){return t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,o(r({method:"DELETE",url:e},i))];case 1:return[2,t.sent()]}}))}))},ResponseType:i,BodyType:u};export default s;export{u as BodyType,i as ResponseType};
