quarkus.proxy.office.host=proxy.example.net
quarkus.proxy.office.port=8080
quarkus.proxy.office.type=HTTP

quarkus.rest-client.inventory.url=https://inventory.example.net/api
quarkus.rest-client.inventory.proxy-configuration-name=office

ဤသည် @RegisterRestClient(configKey = "inventory") ပါရှိသော ရှိပြီးသား Quarkus REST Client အတွက် သက်ဆိုင်သည်။ inventory သည် ထို client ကို ဖော်ပြပြီး office သည် ပြန်လည်အသုံးပြုနိုင်သော proxy entry ကို ဖော်ပြသည်။ URL သည် inventory API အဖြစ် ဆက်ရှိသည်။ အများသူငှာ ရောက်ရှိနိုင်ပြီး အများသူငှာ proxy မှတစ်ဆင့် ဝင်ရောက်ခွင့်ရှိပါက HTTP proxy စာရင်း သည် အမည်ရှိ entry ၏ HTTP host နှင့် port အတွက် ကိုယ်စားလှယ်လောင်းများ ပေးသည်။

အခြား REST client သည်လည်း office ကို ရည်ညွှန်းနိုင်သည်။ အမည်ကို သတ်မှတ်ရုံဖြင့် client တိုင်းအတွက် မသတ်မှတ်ပါ; ရည်ညွှန်းမှုမရှိသော client သည် ရှိပါက ပြင်ဆင်ထားသော မူလ registry proxy ကို အသုံးပြုသည်။

ကြားခံသည် အကောင့်လိုအပ်ပါက application ၏ configuration source မှတစ်ဆင့် quarkus.proxy.office.username နှင့် quarkus.proxy.office.password ကို ပေးပါ။

Proxy Registry ကို Quarkus 3.40 တွင် preview အဖြစ် မှတ်တမ်းတင်ထားသည်။ ကိုက်ညီသော REST Client integration ကို အသုံးပြုပါ; ဗားရှင်းဟောင်းများနှင့် RESTEasy Classic တွင် ၎င်းတို့၏ ပံ့ပိုးထားသော configuration ရှိသည်။

ဆက်စပ်ဆောင်းပါးများ