MCPcopy Create free account
hub / github.com/getgridea/gridea / transformResponse

Method transformResponse

src/server/plugins/deploys/gitproxy.ts:66–84  ·  view source on GitHub ↗
(res: {
    url: any;
    method: any;
    statusCode: any;
    statusMessage: any;
    headers: any;
  })

Source from the content-addressed store, hash-verified

64 }
65
66 private async transformResponse(res: {
67 url: any;
68 method: any;
69 statusCode: any;
70 statusMessage: any;
71 headers: any;
72 }) {
73 const {
74 url, method, statusCode, statusMessage, headers,
75 } = res
76 return {
77 url,
78 method,
79 statusCode,
80 statusMessage,
81 headers,
82 body: res,
83 }
84 }
85}

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected