(currentRequest: CurrentRestRequest)
| 165 | } |
| 166 | |
| 167 | function currentRestRequestToRequest(currentRequest: CurrentRestRequest): RestRequest { |
| 168 | return { |
| 169 | id: currentRequest.id, |
| 170 | collectionId: currentRequest.collectionId, |
| 171 | type: currentRequest.type, |
| 172 | version: currentRequest.version, |
| 173 | data: { ...currentRequest.data }, |
| 174 | }; |
| 175 | } |
| 176 | |
| 177 | function extractAuthorizationHeader(auth: AuthData): string | undefined { |
| 178 | if (!auth || !auth.enabled) return; |
no outgoing calls
no test coverage detected