LIKO-12
  • Docs
  • Help
  • Blog

›Peripherals' Objects

Introduction

  • What is LIKO-12
  • How to install LIKO-12
  • Getting started
  • Your first LIKO-12 program

Peripherals

  • Audio
  • BIOS - Basic Integrated Operating System
  • CPU - Central Processing Unit
  • FDD - Floppy Disk Drive
  • Gamepad
  • GPU - Graphics Processing Unit
  • HDD - Hard Disk Drive
  • Keyboard
  • RAM - Random Access Memory
  • TouchControls - The Touch Gamepad Input
  • WEB

Peripherals' Objects

  • GPU / fontData
  • GPU / image
  • GPU / imageData
  • GPU / quad
  • GPU / spriteBatch
  • WEB / response
Edit

WEB - response

The response table returnd when a HTTP response is received.

  • Available since: WEB: v1.0.0, LIKO-12: v1.0.0
  • Last updated in: WEB: v1.0.0, LIKO-12: v1.0.0

Fields:


response.body

The body of the response.

  • Type: string
  • Available since: response: v1.0.0, LIKO-12: v1.0.0
  • Last updated in: response: v1.0.0, LIKO-12: v1.0.0

response.code

The HTTP status code the response gave.

  • Type: string
  • Available since: response: v1.0.0, LIKO-12: v1.0.0
  • Last updated in: response: v1.0.0, LIKO-12: v1.0.0

response.headers

A table of headers and their values.

  • Type: table
  • Available since: response: v1.0.0, LIKO-12: v1.0.0
  • Last updated in: response: v1.0.0, LIKO-12: v1.0.0

response.headers_raw

A raw string containing the actual headers the server send back.

  • Type: string, nil
  • Available since: response: v1.0.0, LIKO-12: v1.0.0
  • Last updated in: response: v1.0.0, LIKO-12: v1.0.0

This field is nil when the LuaJIT-Request backend is used for the HTTP request.


response.set_cookies

A table of cookies given by the "Set-Cookie" header from the server.

  • Type: table
  • Available since: response: v1.0.0, LIKO-12: v1.0.0
  • Last updated in: response: v1.0.0, LIKO-12: v1.0.0

The object has no methods.

← GPU / spriteBatch
  • Fields:
    • response.body
    • response.code
    • response.headers
    • response.headers_raw
    • response.set_cookies
LIKO-12
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
Project Chat (Discord)Twitter
More
BlogGitHubStar
Copyright © 2020 The LIKO-12 Organization