| /expo/apps/router-e2e/__e2e__/server/app/ |
| H A D | methods+api.ts | 1 import { ExpoResponse } from 'expo-router/server'; 5 return ExpoResponse.json({ 11 return ExpoResponse.json({ 17 return ExpoResponse.json({ 23 return ExpoResponse.json({ 29 return ExpoResponse.json({ 35 return ExpoResponse.json({ 41 return ExpoResponse.json({
|
| /expo/packages/@expo/server/src/ |
| H A D | index.ts | 80 ) => Promise<string | ExpoResponse | null>; 150 return new ExpoResponse('Not found', { 156 } else if (contents instanceof ExpoResponse) { 160 return new ExpoResponse(contents, { 177 if (func instanceof ExpoResponse) { 183 return new ExpoResponse('Method not allowed', { 225 return new ExpoResponse('Not found', { 231 } else if (contents instanceof ExpoResponse) { 235 return new ExpoResponse(contents, { 244 const response = new ExpoResponse('Not found', { [all …]
|
| H A D | environment.ts | 21 global.Response = ExpoResponse; 23 global.ExpoResponse = ExpoResponse; 28 export class ExpoResponse extends Response { class 30 static json(data: any = undefined, init: ResponseInit = {}): ExpoResponse { 43 return new ExpoResponse(body, {
|
| /expo/packages/expo-router/ |
| H A D | server.d.ts | 3 import { ExpoRequest, ExpoResponse } from '@expo/server/build/environment'; 8 ) => ExpoResponse | Promise<ExpoResponse>; 10 export { ExpoRequest, ExpoResponse };
|
| H A D | server.js | 3 module.exports.ExpoResponse = global.ExpoResponse;
|
| /expo/packages/@expo/server/build/ |
| H A D | environment.js | 3 exports.ExpoRequest = exports.ExpoURL = exports.NON_STANDARD_SYMBOL = exports.ExpoResponse = export… 12 global.Response = ExpoResponse; 14 global.ExpoResponse = ExpoResponse; 19 class ExpoResponse extends node_1.Response { class 30 return new ExpoResponse(body, { 36 exports.ExpoResponse = ExpoResponse;
|
| H A D | index.js | 90 return new environment_1.ExpoResponse('No routes manifest found', { 116 return new environment_1.ExpoResponse('Not found', { 123 else if (contents instanceof environment_1.ExpoResponse) { 126 return new environment_1.ExpoResponse(contents, { 140 if (func instanceof environment_1.ExpoResponse) { 145 return new environment_1.ExpoResponse('Method not allowed', { 162 return new environment_1.ExpoResponse('Internal server error', { 181 return new environment_1.ExpoResponse('Not found', { 188 else if (contents instanceof environment_1.ExpoResponse) { 191 return new environment_1.ExpoResponse(contents, { [all …]
|
| H A D | index.d.ts | 4 import { ExpoRequest, ExpoResponse } from './environment'; 7 …getHtml?: (request: ExpoRequest, route: RouteInfo<RegExp>) => Promise<string | ExpoResponse | null… 12 export { ExpoResponse, ExpoRequest };
|
| H A D | environment.d.ts | 6 export declare class ExpoResponse extends Response { 7 static json(data?: any, init?: ResponseInit): ExpoResponse;
|
| /expo/apps/router-e2e/__e2e__/server/app/api/ |
| H A D | env-vars+api.ts | 1 import { ExpoResponse } from 'expo-router/server'; 3 export function GET(): ExpoResponse { 4 return ExpoResponse.json({
|
| H A D | [dynamic]+api.ts | 1 import { ExpoRequest, ExpoResponse } from 'expo-router/server'; 3 export function GET(req: ExpoRequest): ExpoResponse { 5 return ExpoResponse.json({ hello: req.expoUrl.searchParams.get('dynamic') });
|
| H A D | externals+api.ts | 1 import { ExpoResponse } from 'expo-router/server'; 5 export function GET(): ExpoResponse { 8 return new ExpoResponse(path.join('a', 'b', 'c'), { status: 200 });
|
| H A D | json+api.ts | 1 import { ExpoRequest, ExpoResponse } from 'expo-router/server'; 3 export async function POST(req: ExpoRequest): Promise<ExpoResponse> { 6 return ExpoResponse.json(json);
|
| H A D | problematic+api.ts | 1 import { ExpoResponse } from 'expo-router/server'; 3 export function GET(): ExpoResponse {
|
| /expo/apps/router-e2e/__e2e__/server/app/api/a/ |
| H A D | [...spread]+api.tsx | 1 import { ExpoRequest, ExpoResponse } from 'expo-router/server'; 3 export function GET(req: ExpoRequest): ExpoResponse { 4 return ExpoResponse.json({ results: req.expoUrl.searchParams.get('spread') });
|
| /expo/packages/@expo/cli/src/start/server/metro/ |
| H A D | createServerRouteMiddleware.ts | 7 import { ExpoResponse } from '@expo/server'; 53 return new ExpoResponse(error.html, { 62 return new ExpoResponse( 76 return new ExpoResponse( 120 return new ExpoResponse(
|
| /expo/android/expoview/src/main/java/host/exp/exponent/network/ |
| H A D | ManualExpoResponse.kt | 7 class ManualExpoResponse : ExpoResponse { 12 private var networkResponse: ExpoResponse? = null 42 fun setNetworkResponse(expoResponse: ExpoResponse) { in setNetworkResponse() 52 override fun networkResponse(): ExpoResponse? = networkResponse
|
| H A D | ExpoResponse.kt | 3 interface ExpoResponse { interface 8 fun networkResponse(): ExpoResponse?
|
| H A D | OkHttpV1ExpoResponse.kt | 9 class OkHttpV1ExpoResponse(private val okHttpResponse: Response) : ExpoResponse { 32 …override fun networkResponse(): ExpoResponse? = okHttpResponse.networkResponse?.let { OkHttpV1Expo… in body()
|
| H A D | ExponentHttpClient.kt | 25 fun onResponse(response: ExpoResponse) in onFailure() 26 fun onCachedResponse(response: ExpoResponse, isEmbedded: Boolean) in onFailure() 74 override fun onResponse(response: ExpoResponse) { in callDefaultCache() 81 override fun onResponse(response: ExpoResponse) { in callDefaultCache() 85 override fun onCachedResponse(response: ExpoResponse, isEmbedded: Boolean) { in callDefaultCache()
|
| H A D | ExpoHttpCallback.kt | 9 fun onResponse(response: ExpoResponse)
|
| /expo/packages/@expo/server/build/vendor/ |
| H A D | netlify.d.ts | 3 import { ExpoRequest, ExpoResponse } from '../environment'; 7 export declare function respond(res: ExpoResponse): Promise<HandlerResponse>;
|
| H A D | http.d.ts | 5 import { ExpoRequest, ExpoResponse } from '../environment'; 16 export declare function respond(res: http.ServerResponse, expoRes: ExpoResponse): Promise<void>;
|
| /expo/docs/pages/preview/ |
| H A D | api-routes.mdx | 43 import { ExpoRequest, ExpoResponse } from 'expo-router/server'; 46 return ExpoResponse.json({ hello: 'world' }); 114 import { ExpoRequest, ExpoResponse } from 'expo-router/server'; 119 return ExpoResponse.json({ ... }); 128 import { ExpoRequest, ExpoResponse } from 'expo-router/server'; 133 return ExpoResponse.json({ ... }); 142 import { ExpoRequest, ExpoResponse } from 'expo-router/server'; 145 return ExpoResponse.json({ hello: 'universe' }); 154 import { ExpoRequest, ExpoResponse } from 'expo-router/server'; 158 return new ExpoResponse('No post found', { [all …]
|
| /expo/packages/@expo/server/src/vendor/ |
| H A D | http.ts | 10 import { ExpoRequest, ExpoResponse } from '../environment'; 88 export async function respond(res: http.ServerResponse, expoRes: ExpoResponse): Promise<void> {
|