PageSourceSearch

https://figura-wiki.pages.dev/assets/js/0c6f71e5.b1dcb4dd.js

js figura-wiki.pages.dev collected 2026-10-03 05:14:44 UTC 5,581 bytes, 2 lines download raw bytes

1/*! For license information please see 0c6f71e5.b1dcb4dd.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkfigurawiki=globalThis.webpackChunkfigurawiki||[]).push([[5758],{2665(e,n,t){t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>l,metadata:()=>o,toc:()=>c});var s=t(3274),r=t(5776);const l={},i=void 0,o={id:"globals/Net/HttpResponse",title:"HttpResponse",description:"Object that contains HTTP response",source:"@site/docs/globals/Net/HttpResponse.md",sourceDirName:"globals/Net",slug:"/globals/Net/HttpResponse",permalink:"/globals/Net/HttpResponse",draft:!1,unlisted:!1,editUrl:"https://github.com/figuramc/wiki/tree/main/docs/globals/Net/HttpResponse.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"HttpRequestBuilder",permalink:"/globals/Net/HttpRequestBuilder"},next:{title:"Particles",permalink:"/category/particles"}},d={},c=[{value:"<code>getData()</code>",id:"getData",level:3},{value:"<code>getHeaders()</code>",id:"getHeaders",level:3},{value:"<code>getResponseCode()</code>",id:"getResponseCode",level:3}];function a(e){const n={a:"a",admonition:"admonition",code:"code",h3:"h3",hr:"hr",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.p,{children:"Object that contains HTTP response"}),"\n",(0,s.jsx)(n.admonition,{type:"warning",children:(0,s.jsx)(n.p,{children:"This page is a WIP. It contains all the information in Figura's documentation but we're working on adding more helpful descriptions."})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getData",children:(0,s.jsx)("code",{children:"getData()"})}),"\n",(0,s.jsx)(n.p,{children:"Returns input stream with response data"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-lua",children:"getData()\n"})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Returns:"})}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)("code",{children:(0,s.jsx)(n.a,{href:"/globals/Data/InputStream",children:"InputStream"})})}),(0,s.jsx)(n.td,{children:"-"})]})})]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Example:"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-lua",children:"-- example coming soon\n"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getHeaders",children:(0,s.jsx)("code",{children:"getHeaders()"})}),"\n",(0,s.jsx)(n.p,{children:"Returns headers of this response"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-lua",children:"getHeaders()\n"})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Returns:"})}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)("code",{children:(0,s.jsx)(n.a,{href:"/tutorials/types/Tables",children:"Table"})})}),(0,s.jsx)(n.td,{children:"-"})]})})]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Example:"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-lua",children:"-- example coming soon\n"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getResponseCode",children:(0,s.jsx)("code",{children:"getResponseCode()"})}),"\n",(0,s.jsx)(n.p,{children:"Returns response code"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-lua",children:"getResponseCode()\n"})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Returns:"})}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)("code",{children:(0,s.jsx)(n.a,{href:"/tutorials/types/Numbers",children:"Integer"})})}),(0,s.jsx)(n.td,{children:"-"})]})})]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Example:"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-lua",children:"-- example coming soon\n"})}),"\n",(0,s.jsx)(n.hr,{})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},8034(e,n,t){var s=t(9474),r=Symbol.for("react.element"),l=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=s.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function c(e,n,t){var s,l={},c=null,a=null;for(s in void 0!==t&&(c=""+t),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(a=n.ref),n)i.call(n,s)&&!d.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:r,type:e,key:c,ref:a,props:l,_owner:o.current}}n.Fragment=l,n.jsx=c,n.jsxs=c},3274(e,n,t){e.exports=t(8034)},5776(e,n,t){t.d(n,{R:()=>i,x:()=>o});var s=t(9474);const r={},l=s.createContext(r);function i(e){const n=s.useContext(l);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(l.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.