TypeScript interfaces for HTTP request structure used in Bruno.
// Source: https://github.com/usebruno/bruno | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
import type {
KeyValue,
HTTPScripts,
Variables,
Auth,
MultipartForm,
FileList,
GraphqlBody
} from '../common';
export type HttpRequestParamType = 'query' | 'path';
export interface HttpRequestParam extends KeyValue {
type: HttpRequestParamType;
}
export type HttpRequestBodyMode
= | 'none'
| 'json'
| 'text'
| 'xml'
| 'formUrlEncoded'
| 'multipartForm'
| 'graphql'
| 'sparql'
| 'file';
export interface HttpRequestBody {
mode: HttpRequestBodyMode;
json?: string | null;
text?: string | null;
xml?: string | null;
sparql?: string | null;
formUrlEncoded?: KeyValue[] | null;
multipartForm?: MultipartForm | nu
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key