Blockland Forums > Suggestions & Requests
Accepting Requests [Locked]
<< < (7/65) > >>
MARBLE MAN:

--- Quote from: Port on March 01, 2013, 04:54:48 PM ---Create a fully HTTP 1.1 standards compliant web client library that has an API similar to the Python requests library.
However, since a blocking thing in TorqueScript is just a no-go, use callbacks.

Using it such as follows:


--- Code: ---function onDone( %response )
{
    %response.raiseForStatus();
    echo( strLen( %response.text ) );

    if ( %response.headers.get( "content-type" ) $= "application/json" )
    {
        echo( %response.json );
    }
}

requests.get( "http://example.com/hello", "onDone" );

// or alternatively

%session = requests.Session();
%session.get( "http://example.com/hello", "onDone" );

--- End code ---

--- End quote ---
That is too advanced for me....
MARBLE MAN:

--- Quote from: Cassord on March 01, 2013, 03:41:22 PM ---Toy gun. Just a gun that doesn't shoot. It's for a gun toss minigame on my Jailbreak map. Btw, anyone interested in hosting that for me?

--- End quote ---
that is fairly simple, will do


--- Quote from: SirLancelot7 on March 01, 2013, 03:50:42 PM ---I need an item.  Pepper Spray.

--- End quote ---
sounds interesting, maybe if you can get a model
DYLANzzz:
Request:
Join the coding challenge when it opens! :D
Zeblote:

--- Quote from: DYLANzzz on March 01, 2013, 06:27:55 PM ---Request:
Join the coding challenge when it opens! :D

--- End quote ---
Whaht coding challenge
MARBLE MAN:

--- Quote from: DYLANzzz on March 01, 2013, 06:27:55 PM ---Request:
Join the coding challenge when it opens! :D

--- End quote ---

--- Quote from: Zeblote on March 01, 2013, 06:43:19 PM ---Whaht coding challenge

--- End quote ---
Navigation
Message Index
Next page
Previous page

Go to full version