【问题标题】:How to fetch Rest Api Header response in appolo graphql如何在 apollo graphql 中获取 Rest Api Header 响应
【发布时间】:2022-12-02 18:19:05
【问题描述】:

I am calli gon get method and getting response , but I have to fetct response header also .

like below is api

   let url= https://......./partyInteractionManagement/v1/partyInteraction?sort=-interactionDate.startDateTime&type!=TroubleTicketRequest&limit=5&offset=0

 const partyInteractionResponse = await this.get(`${url}`);
retuen   partyInteractionResponse;

    I am getting proper array repsonse in partyInteractionResponse for this but there are other
    
    response hearder 
    content-encoding: gzip
    x-total-count: 224034

How I can get these response header and make the qury . Please suggest

    标签: javascript react-native rest graphql apollo-client


    【解决方案1】:
    猜你喜欢
    • 2019-07-26
    • 1970-01-01
    • 2020-01-18
    • 1970-01-01
    • 2021-05-02
    • 1970-01-01
    • 2019-09-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多