Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
35 lines
1.4 KiB
TypeScript
35 lines
1.4 KiB
TypeScript
import type { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
|
|
import type { FetchMetrics } from './index';
|
|
import { BaseNextRequest, BaseNextResponse } from './index';
|
|
import type { NextRequestHint } from '../web/adapter';
|
|
export declare class WebNextRequest extends BaseNextRequest<ReadableStream | null> {
|
|
request: Request;
|
|
headers: IncomingHttpHeaders;
|
|
fetchMetrics: FetchMetrics | undefined;
|
|
constructor(request: NextRequestHint);
|
|
parseBody(_limit: string | number): Promise<any>;
|
|
}
|
|
export declare class WebNextResponse extends BaseNextResponse<WritableStream> {
|
|
transformStream: TransformStream<any, any>;
|
|
private headers;
|
|
private textBody;
|
|
private closeController;
|
|
statusCode: number | undefined;
|
|
statusMessage: string | undefined;
|
|
constructor(transformStream?: TransformStream<any, any>);
|
|
setHeader(name: string, value: string | string[]): this;
|
|
removeHeader(name: string): this;
|
|
getHeaderValues(name: string): string[] | undefined;
|
|
getHeader(name: string): string | undefined;
|
|
getHeaders(): OutgoingHttpHeaders;
|
|
hasHeader(name: string): boolean;
|
|
appendHeader(name: string, value: string): this;
|
|
body(value: string): this;
|
|
private readonly sendPromise;
|
|
private _sent;
|
|
send(): void;
|
|
get sent(): boolean;
|
|
toResponse(): Promise<Response>;
|
|
onClose(callback: () => void): void;
|
|
}
|