Home
last modified time | relevance | path

Searched refs:headers (Results 1 – 25 of 492) sorted by relevance

12345678910>>...20

/expo/packages/expo-auth-session/src/
H A DFetch.ts11 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 DFetch.js17 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 DresolvePlatform-test.ts18 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 DfetchAsync.ts7 export async function fetchAsync(url: string): Promise<{ body: string; headers: Headers }> {
10 headers: {
17 headers: response.headers,
H A DfetchAsync.native.ts17 ): 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 DfetchThenEvalJs.ts19 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 DExpoGoManifestHandlerMiddleware.ts84 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 DremoteDevtoolsSecurityHeadersMiddleware.ts12 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 DsendNotificationToAPNS.js26 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 DExpoImageOkHttpClientGlideModule.kt24 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 DExpoImageOkHttpClientGlideModule.kt24 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 DExpoImageOkHttpClientGlideModule.kt24 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 Dnetlify.ts19 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 Dhttp.ts57 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 Dexpress.ts47 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 Dhttp.js37 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 Dexpress.js30 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 Dnetlify.js17 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 DapiClient.ts17 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 DfetchAsync.js13 headers: { property
20 headers: response.headers,
/expo/packages/@expo/server/src/
H A Denvironment.ts37 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 DDevLauncherOkHttpExtensions.kt36 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 DAPIV2Client.ts11 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 DABI49_0_0RCTMultipartStreamReader.m31 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 DABI48_0_0RCTMultipartStreamReader.m31 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 …]

12345678910>>...20