Home
last modified time | relevance | path

Searched refs:ExpoResponse (Results 1 – 25 of 30) sorted by relevance

12

/expo/apps/router-e2e/__e2e__/server/app/
H A Dmethods+api.ts1 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 Dindex.ts80 ) => 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 Denvironment.ts21 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 Dserver.d.ts3 import { ExpoRequest, ExpoResponse } from '@expo/server/build/environment';
8 ) => ExpoResponse | Promise<ExpoResponse>;
10 export { ExpoRequest, ExpoResponse };
H A Dserver.js3 module.exports.ExpoResponse = global.ExpoResponse;
/expo/packages/@expo/server/build/
H A Denvironment.js3 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 Dindex.js90 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 Dindex.d.ts4 import { ExpoRequest, ExpoResponse } from './environment';
7 …getHtml?: (request: ExpoRequest, route: RouteInfo<RegExp>) => Promise<string | ExpoResponse | null…
12 export { ExpoResponse, ExpoRequest };
H A Denvironment.d.ts6 export declare class ExpoResponse extends Response {
7 static json(data?: any, init?: ResponseInit): ExpoResponse;
/expo/apps/router-e2e/__e2e__/server/app/api/
H A Denv-vars+api.ts1 import { ExpoResponse } from 'expo-router/server';
3 export function GET(): ExpoResponse {
4 return ExpoResponse.json({
H A D[dynamic]+api.ts1 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 Dexternals+api.ts1 import { ExpoResponse } from 'expo-router/server';
5 export function GET(): ExpoResponse {
8 return new ExpoResponse(path.join('a', 'b', 'c'), { status: 200 });
H A Djson+api.ts1 import { ExpoRequest, ExpoResponse } from 'expo-router/server';
3 export async function POST(req: ExpoRequest): Promise<ExpoResponse> {
6 return ExpoResponse.json(json);
H A Dproblematic+api.ts1 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.tsx1 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 DcreateServerRouteMiddleware.ts7 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 DManualExpoResponse.kt7 class ManualExpoResponse : ExpoResponse {
12 private var networkResponse: ExpoResponse? = null
42 fun setNetworkResponse(expoResponse: ExpoResponse) { in setNetworkResponse()
52 override fun networkResponse(): ExpoResponse? = networkResponse
H A DExpoResponse.kt3 interface ExpoResponse { interface
8 fun networkResponse(): ExpoResponse?
H A DOkHttpV1ExpoResponse.kt9 class OkHttpV1ExpoResponse(private val okHttpResponse: Response) : ExpoResponse {
32 …override fun networkResponse(): ExpoResponse? = okHttpResponse.networkResponse?.let { OkHttpV1Expo… in body()
H A DExponentHttpClient.kt25 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 DExpoHttpCallback.kt9 fun onResponse(response: ExpoResponse)
/expo/packages/@expo/server/build/vendor/
H A Dnetlify.d.ts3 import { ExpoRequest, ExpoResponse } from '../environment';
7 export declare function respond(res: ExpoResponse): Promise<HandlerResponse>;
H A Dhttp.d.ts5 import { ExpoRequest, ExpoResponse } from '../environment';
16 export declare function respond(res: http.ServerResponse, expoRes: ExpoResponse): Promise<void>;
/expo/docs/pages/preview/
H A Dapi-routes.mdx43 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 Dhttp.ts10 import { ExpoRequest, ExpoResponse } from '../environment';
88 export async function respond(res: http.ServerResponse, expoRes: ExpoResponse): Promise<void> {

12