Garry's Mod Wiki

HTTPRequest

Description

Table used by HTTP function.

Parameters

failed [function]

Function to be called on failure. Arguments are

success [function]

Function to be called on success. Arguments are

method [string]

Request method, case insensitive. Possible values are:

  • GET
  • POST
  • HEAD
  • PUT
  • DELETE
  • PATCH
  • OPTIONS

url [string]

The target url

parameters [table]

KeyValue table for parameters. This is only applicable to the following request methods:

  • GET
  • POST
  • HEAD

headers [table]

KeyValue table for headers

body [string]

Body string for POST data. If set, will override parameters

type [string]

Content type for body.

Default: "\u0022text/plain; charset\u0026#61;utf-8\u0022"

Page Links


Special Pages


Wikis

?

Render Time: 43ms

DB GetPage 5
Generate Html 15
SaveChanges (1) 8
Render Body 0
Render Sidebar 12