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.

Page Links


Special Pages


Wikis

?

Render Time: 41ms

Session 0
DB GetPage 4
Generate Html 15
SaveChanges 8
Render Body 0
Render Sidebar 12