Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jan 9, 2025
1 parent 419c373 commit b58eb37
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/astro/src/core/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@ import type { IncomingHttpHeaders } from 'node:http';
import type { Logger } from './logger/core.js';

type HeaderType = Headers | Record<string, any> | IncomingHttpHeaders;
type RequestBody =
| ArrayBuffer
| Blob
| ReadableStream
| URLSearchParams
| FormData
| Request['body'];

export interface CreateRequestOptions {
url: URL | string;
clientAddress?: string | undefined;
headers: HeaderType;
method?: string;
body?: RequestBody | undefined;
body?: RequestInit['body'];
logger: Logger;
locals?: object | undefined;
/**
Expand Down

0 comments on commit b58eb37

Please sign in to comment.