Defjs
Core

HttpResponseType

Representation used to read an HTTP body before struct validation.

@defjs/core · Type

Signature

type HttpResponseType = "arraybuffer" | "blob" | "json" | "text";

Chosen from the declared struct kind: string is text, blob and file are blob, arrayBuffer is arraybuffer (bytes), and every other kind is json. Not a field on defineRequest. It appears on HttpRequest as responseType and errorResponseType.

Edit this page on GitHub
Released under the MIT License. · Copyright © 2026 MunMunMiao