| /expo/packages/expo-auth-session/src/ |
| H A D | Fetch.ts | 11 headers?: Headers; 31 const request: Omit<RequestInit, 'headers'> & { headers: HeadersInit } = { 34 headers: {}, 39 if (fetchRequest.headers) { 40 for (const i in fetchRequest.headers) { 41 if (i in fetchRequest.headers) { 42 request.headers[i] = fetchRequest.headers[i] as string; 57 if (isJsonDataType && !('Accept' in request.headers)) { 59 request.headers['Accept'] = 'application/json, text/javascript; q=0.01'; 67 const contentType = response.headers.get('content-type');
|
| /expo/packages/expo-auth-session/build/ |
| H A D | Fetch.js | 17 headers: {}, property 20 if (fetchRequest.headers) { 21 for (const i in fetchRequest.headers) { 22 if (i in fetchRequest.headers) { 23 request.headers[i] = fetchRequest.headers[i]; 37 if (isJsonDataType && !('Accept' in request.headers)) { 39 request.headers['Accept'] = 'application/json, text/javascript; q=0.01'; 44 const contentType = response.headers.get('content-type');
|
| /expo/packages/@expo/cli/src/start/server/middleware/__tests__/ |
| H A D | resolvePlatform-test.ts | 18 headers: {}, 37 headers: { [header]: 'ios' }, 46 headers: { [header]: ['android', 'ios'] }, 57 headers: { 'expo-platform': 'android' }, 67 headers: { 88 headers: { 102 headers: { 116 headers: {
|
| /expo/packages/@expo/metro-runtime/src/async-require/ |
| H A D | fetchAsync.ts | 7 export async function fetchAsync(url: string): Promise<{ body: string; headers: Headers }> { 10 headers: { 17 headers: response.headers,
|
| H A D | fetchAsync.native.ts | 17 ): Promise<{ body: string; headers: Record<string, string> }> { 20 let headers: Record<string, string> = {}; 24 return new Promise<{ body: string; headers: Record<string, string> }>((resolve, reject) => { 38 headers = responseHeaders; 47 resolve({ body: responseText!, headers });
|
| H A D | fetchThenEvalJs.ts | 19 return fetchAsync(url).then(({ body, headers }) => { 21 headers?.has?.('Content-Type') != null && 22 headers.get('Content-Type')!.includes('application/json')
|
| /expo/packages/@expo/cli/src/start/server/middleware/ |
| H A D | ExpoGoManifestHandlerMiddleware.ts | 84 hostname: stripPort(req.headers['host']), 91 headers.set('expo-protocol-version', 0); 92 headers.set('expo-sfv-version', 0); 93 headers.set('cache-control', 'private, max-age=0'); 94 return headers; 100 headers: ServerHeaders; 171 const headers = this.getDefaultResponseHeaders(); constant 184 headers, 190 headers.set( 198 headers.set(key, value); [all …]
|
| H A D | remoteDevtoolsSecurityHeadersMiddleware.ts | 12 typeof req.headers.origin === 'string' && 13 !req.headers.origin.match(/^https?:\/\/localhost:/) && 14 !req.headers.origin.match(/^https:\/\/chrome-devtools-frontend\.appspot\.com/) 18 `Unauthorized request from ${req.headers.origin}. ` +
|
| /expo/docs/public/static/code/ |
| H A D | sendNotificationToAPNS.js | 26 const headers = { variable 34 const request = client.request(headers); 49 request.on('response', (headers, flags) => { 50 for (const name in headers) { 51 console.log(`${name}: ${headers[name]}`);
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/image/okhttp/ |
| H A D | ExpoImageOkHttpClientGlideModule.kt | 24 headers: Headers?, 26 ) : GlideUrl(uri, headers) { 42 return getBaseCacheKey() == other.getBaseCacheKey() && headers.equals(other.headers) in getBaseCacheKey() 44 return getBaseCacheKey() == other.cacheKey && headers.equals(other.headers) in getBaseCacheKey() 53 hashCode = 31 * hashCode + headers.hashCode() in hashCode()
|
| /expo/packages/expo-image/android/src/main/java/expo/modules/image/okhttp/ |
| H A D | ExpoImageOkHttpClientGlideModule.kt | 24 headers: Headers?, 26 ) : GlideUrl(uri, headers) { 42 return getBaseCacheKey() == other.getBaseCacheKey() && headers.equals(other.headers) in getBaseCacheKey() 44 return getBaseCacheKey() == other.cacheKey && headers.equals(other.headers) in getBaseCacheKey() 53 hashCode = 31 * hashCode + headers.hashCode() in hashCode()
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/image/okhttp/ |
| H A D | ExpoImageOkHttpClientGlideModule.kt | 24 headers: Headers?, 26 ) : GlideUrl(uri, headers) { 42 return getBaseCacheKey() == other.getBaseCacheKey() && headers.equals(other.headers) in getBaseCacheKey() 44 return getBaseCacheKey() == other.cacheKey && headers.equals(other.headers) in getBaseCacheKey() 53 hashCode = 31 * hashCode + headers.hashCode() in hashCode()
|
| /expo/packages/@expo/server/src/vendor/ |
| H A D | netlify.ts | 19 const contentType = res.headers.get('Content-Type'); 31 const multiValueHeaders = res.headers.raw(); 42 const headers = new Headers(); constant 47 headers.append(key, value); 52 return headers; 86 const origin = event.headers.host; 97 headers: createHeaders(event.multiValueHeaders), constant 104 const isFormData = event.headers['content-type']?.includes('multipart/form-data');
|
| H A D | http.ts | 57 headers: convertHeaders(req.headers), constant 71 const headers = new Headers(); constant 77 headers.append(key, value); 80 headers.set(key, values); 85 return headers; 92 for (const [key, values] of Object.entries(expoRes.headers.raw())) {
|
| H A D | express.ts | 47 const headers = new Headers(); constant 53 headers.append(key, value); 56 headers.set(key, values); 61 return headers; 73 headers: convertHeaders(req.headers), constant 90 for (const [key, values] of Object.entries(expoRes.headers.raw())) {
|
| /expo/packages/@expo/server/build/vendor/ |
| H A D | http.js | 37 headers: convertHeaders(req.headers), property 49 const headers = new node_1.Headers(); 54 headers.append(key, value); 58 headers.set(key, values); 62 return headers; 68 for (const [key, values] of Object.entries(expoRes.headers.raw())) {
|
| H A D | express.js | 30 const headers = new node_1.Headers(); 35 headers.append(key, value); 39 headers.set(key, values); 43 return headers; 53 headers: convertHeaders(req.headers), property 67 for (const [key, values] of Object.entries(expoRes.headers.raw())) {
|
| H A D | netlify.js | 17 const contentType = res.headers.get('Content-Type'); 28 const multiValueHeaders = res.headers.raw(); 38 const headers = new node_1.Headers(); 42 headers.append(key, value); 46 return headers; 76 const origin = event.headers.host; 85 headers: createHeaders(event.multiValueHeaders), property 91 const isFormData = event.headers['content-type']?.includes('multipart/form-data');
|
| /expo/packages/expo-dev-launcher/bundle/ |
| H A D | apiClient.ts | 17 const headers = { constant 25 headers: { constant 26 ...headers, 27 ...options.headers, 68 headers['expo-session'] = session;
|
| /expo/packages/@expo/metro-runtime/build/async-require/ |
| H A D | fetchAsync.js | 13 headers: { property 20 headers: response.headers,
|
| /expo/packages/@expo/server/src/ |
| H A D | environment.ts | 37 const headers = new Headers(init?.headers); constant 39 if (!headers.has('content-type')) { 40 headers.set('content-type', 'application/json'); 45 headers,
|
| /expo/packages/expo-dev-launcher/android/src/main/java/expo/modules/devlauncher/helpers/ |
| H A D | DevLauncherOkHttpExtensions.kt | 36 fun fetch(url: Uri, method: String, headers: Headers): Request = in fetch() 37 Request.Builder().method(method, null).url(url.toString()).headers(headers).build() in fetch() 39 fun post(url: Uri, requestBody: RequestBody, vararg headers: Pair<String, String>): Request = in fetch() 45 headers.forEach { in fetch()
|
| /expo/home/api/ |
| H A D | APIV2Client.ts | 11 headers?: Record<string, string>; 27 headers: { 28 ...options.headers, 89 headers: { constant 90 ...options.headers, 112 headers: { constant 113 ...options.headers,
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/React/Base/ |
| H A D | ABI49_0_0RCTMultipartStreamReader.m | 31 NSMutableDictionary *headers = [NSMutableDictionary new]; 42 [headers setValue:value forKey:key]; 44 return headers; 47 - (void)emitChunk:(NSData *)data headers:(NSDictionary *)headers callback:(ABI49_0_0RCTMultipartCal… 53 } else if (headers != nil) { 57 callback(headers, bodyData, done); 66 - (void)emitProgress:(NSDictionary *)headers 71 if (headers == nil) { 77 …NSInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] i… 80 callback(headers, @(headersContentLength), @(contentLength)); [all …]
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/React/Base/ |
| H A D | ABI48_0_0RCTMultipartStreamReader.m | 31 NSMutableDictionary *headers = [NSMutableDictionary new]; 42 [headers setValue:value forKey:key]; 44 return headers; 47 - (void)emitChunk:(NSData *)data headers:(NSDictionary *)headers callback:(ABI48_0_0RCTMultipartCal… 53 } else if (headers != nil) { 57 callback(headers, bodyData, done); 66 - (void)emitProgress:(NSDictionary *)headers 71 if (headers == nil) { 77 …NSInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] i… 80 callback(headers, @(headersContentLength), @(contentLength)); [all …]
|