FlightGear next
NasalHTTP.cxx File Reference
#include "NasalHTTP.hxx"
#include <Main/globals.hxx>
#include <Network/HTTPClient.hxx>
#include <simgear/io/HTTPFileRequest.hxx>
#include <simgear/io/HTTPMemoryRequest.hxx>
#include <simgear/nasal/cppbind/from_nasal.hxx>
#include <simgear/nasal/cppbind/to_nasal.hxx>
#include <simgear/nasal/cppbind/NasalHash.hxx>
#include <simgear/nasal/cppbind/Ghost.hxx>

Go to the source code of this file.

Typedefs

typedef nasal::Ghost< simgear::HTTP::Request_ptr > NasalRequest
 
typedef nasal::Ghost< simgear::HTTP::FileRequestRef > NasalFileRequest
 
typedef nasal::Ghost< simgear::HTTP::MemoryRequestRef > NasalMemoryRequest
 

Functions

FGHTTPClientrequireHTTPClient (const nasal::ContextWrapper &ctx)
 
static naRef f_http_save (const nasal::CallContext &ctx)
 http.save(url, filename)
 
static naRef f_http_load (const nasal::CallContext &ctx)
 http.load(url)
 
static naRef f_request_abort (simgear::HTTP::Request &, const nasal::CallContext &ctx)
 
naRef initNasalHTTP (naRef globals, naContext c)
 

Typedef Documentation

◆ NasalFileRequest

typedef nasal::Ghost<simgear::HTTP::FileRequestRef> NasalFileRequest

Definition at line 36 of file NasalHTTP.cxx.

◆ NasalMemoryRequest

typedef nasal::Ghost<simgear::HTTP::MemoryRequestRef> NasalMemoryRequest

Definition at line 37 of file NasalHTTP.cxx.

◆ NasalRequest

typedef nasal::Ghost<simgear::HTTP::Request_ptr> NasalRequest

Definition at line 35 of file NasalHTTP.cxx.

Function Documentation

◆ f_http_load()

static naRef f_http_load ( const nasal::CallContext & ctx)
static

http.load(url)

Definition at line 71 of file NasalHTTP.cxx.

◆ f_http_save()

static naRef f_http_save ( const nasal::CallContext & ctx)
static

http.save(url, filename)

Definition at line 51 of file NasalHTTP.cxx.

◆ f_request_abort()

static naRef f_request_abort ( simgear::HTTP::Request & ,
const nasal::CallContext & ctx )
static

Definition at line 77 of file NasalHTTP.cxx.

◆ initNasalHTTP()

naRef initNasalHTTP ( naRef globals,
naContext c )

Definition at line 88 of file NasalHTTP.cxx.

◆ requireHTTPClient()

FGHTTPClient & requireHTTPClient ( const nasal::ContextWrapper & ctx)

Definition at line 39 of file NasalHTTP.cxx.