Skip to content

Commit

Permalink
Document default values for HTTPClient properties (closes #37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikMinekus committed Feb 6, 2021
1 parent e92d503 commit 62c7db7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pawn/scripting/include/ripext/http.inc
Original file line number Diff line number Diff line change
Expand Up @@ -170,31 +170,31 @@ methodmap HTTPClient < Handle
// @param value Optional value to pass to the callback function.
public native void UploadFile(const char[] endpoint, const char[] path, HTTPFileCallback callback, any value = 0);

// Connect timeout in seconds.
// Connect timeout in seconds. Defaults to 10.
property int ConnectTimeout {
public native get();
public native set(int connectTimeout);
}

// Follow HTTP 3xx redirects.
// Follow HTTP 3xx redirects. Defaults to true.
property bool FollowLocation {
public native get();
public native set(bool followLocation);
}

// Timeout in seconds.
// Timeout in seconds. Defaults to 30.
property int Timeout {
public native get();
public native set(int timeout);
}

// Max upload speed in bytes per second.
// Max upload speed in bytes per second. Defaults to unlimited speed.
property int MaxSendSpeed {
public native get();
public native set(int speed);
}

// Max download speed in bytes per second.
// Max download speed in bytes per second. Defaults to unlimited speed.
property int MaxRecvSpeed {
public native get();
public native set(int speed);
Expand Down

0 comments on commit 62c7db7

Please sign in to comment.