Ein kleiner, benutzerfreundlicher HTTP-Client zum Senden und Empfangen von Daten über das Internet.
Memberfunktionen
Memberfunktionen für
ISteamHTTP
werden über die globale Accessorfunktion
SteamHTTP()
aufgerufen.
CreateCookieContainer
HTTPCookieContainerHandle CreateCookieContainer( bool bAllowResponsesToModify );
Name | Typ | Beschreibung |
bAllowResponsesToModify | bool | Legt fest, ob der Server in diesem Container Cookies setzen darf. |
Erstellt einen Cookie-Container zum Speichern von Cookies während der Lebenszeit des Prozesses.
This API is just for during process lifetime, after Steam restarts no cookies are persisted and you have no way to access the cookie container across repeat executions of your process.
Wenn
bAllowResponsesToModify
true ergibt, dürfen sämtliche Antworten auf Ihre Anfrage, die diesen Cookie-Container verwenden, neue Cookies zum Container hinzufügen, die mit zukünftigen Anfragen übertragen werden dürfen. Andernfalls, wenn es
false ergibt, werden nur Cookies gesendet, die Sie explizit gesetzt haben.
You can associate the cookie container with a http request by using
SetHTTPRequestCookieContainer, and you can set a cookie using
SetCookie.
Don't forget to free the container when you're done with it to prevent leaking memory by calling
ReleaseCookieContainer!
Returns: HTTPCookieContainerHandleReturns a new cookie container handle to be used with future calls to SteamHTTP functions.
CreateHTTPRequest
HTTPRequestHandle CreateHTTPRequest( EHTTPMethod eHTTPRequestMethod, const char *pchAbsoluteURL );
Name | Typ | Beschreibung |
eHTTPRequestMethod | EHTTPMethod | The type of request to make with this request. |
pchAbsoluteURL | const char * | Die anzufragende URL. Must start with "http://" or "https://". |
Initialisiert eine neue HTTP-Anfrage.
Erfordert eine Methode wie GET oder POST und die absolute URL für die Anfrage. Sowohl HTTP als auch HTTPS werden unterstützt. Daher muss dieser String mit „
http://“ oder „
https://“ beginnen und sollte ungefähr so aussehen: „
http://store.steampowered.com/app/10/“. This call returns a handle that you can use to make further calls to setup and then send the HTTP request with
SendHTTPRequest or
SendHTTPRequestAndStreamResponse.
Don't forget to free the HTTP request when you're done with it to prevent leaking memory by calling
ReleaseHTTPRequest!
Returns: HTTPRequestHandleReturns a new request handle to be used with future calls to SteamHTTP functions. Returns
INVALID_HTTPREQUEST_HANDLE if
pchAbsoluteURL
is
NULL or empty ("").
DeferHTTPRequest
bool DeferHTTPRequest( HTTPRequestHandle hRequest );
Stellt eine bereits gesendete Anfrage zurück, indem es sie ans Ende der Warteschlange verschiebt.
Rückgabe: bool
Gibt
true zurück, wenn die Anfrage erfolgreich zurückgestellt wurde. Andernfalls wird
false ausgegeben, wenn
hRequest
ein ungültiger Handle ist oder wenn die Anfrage noch nicht gesendet wurde.
Siehe auch: SendHTTPRequest,
SendHTTPRequestAndStreamResponseGetHTTPDownloadProgressPct
bool GetHTTPDownloadProgressPct( HTTPRequestHandle hRequest, float *pflPercentOut );
Name | Type | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to get the download percentage for. |
pflPercentOut | float * | Returns the download percentage if the call was successful. |
Gets progress on downloading the body for the request.
This will be zero unless a response header has already been received which included a content-length field. For responses that contain no content-length it will report zero for the duration of the request as the size is unknown until the connection closes.
Rückgabewert: bool
Returns
true upon success if the download percentage was successfully returned. Otherwise,
false if the handle is invalid or
pflPercentOut
is
NULL.
GetHTTPRequestWasTimedOut
bool GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest, bool *pbWasTimedOut );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to check the failure reason for. |
pbWasTimedOut | bool * | Returns whether the request was timed out or not. |
Check if the reason the request failed was because we timed it out (rather than some harder failure).
You'll want to call this within the context of
HTTPRequestCompleted_t if
m_bRequestSuccessful
is
false.
Rückgabewert: bool
Returns
true upon success if we successfully checked .
Returns
false under the following conditions:
-
hRequest
was invalid.
- The request has not been sent or has not completed.
GetHTTPResponseBodyData
bool GetHTTPResponseBodyData( HTTPRequestHandle hRequest, uint8 *pBodyDataBuffer, uint32 unBufferSize );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to get the response body data for. |
pBodyDataBuffer | uint8 * | Der Puffer, in den die Daten kopiert werden. |
unBufferSize | uint32 | This should be the size of pBodyDataBuffer in bytes. |
Ruft die Textdaten einer HTTP-Antwort ab.
Dies muss aufgerufen werden, nachdem die HTTP-Anfrage abgeschlossen wurde und über das mit diesem Anfrage-Handle verknüpfte
HTTPRequestCompleted_t-Aufrufergebnis die HTTP-Antwort zurückgegeben hat. You should first call
GetHTTPResponseBodySize or use the
m_unBodySize
variable provided in the call result, you can then allocate a buffer with that size to pass into this function.
This is only for HTTP requests which were sent with
SendHTTPRequest. Use
GetHTTPStreamingResponseBodyData if you're using streaming HTTP requests via
SendHTTPRequestAndStreamResponse.
Returns: bool
Returns
true upon success indicating that
pBodyDataBuffer
has been filled with the body data.
Otherwise, returns
false under the following conditions:
-
hRequest
war ungültig.
- Die Anfrage wurde nicht gesendet oder nicht abgeschlossen.
- Die Anfrage ist eine Streaming-Anfrage.
-
pBodyDataBuffer
ist NULL.
-
unBufferSize
hat nicht dieselbe Größe, die von GetHTTPResponseBodySize vorgegeben wurde.
GetHTTPResponseBodySize
bool GetHTTPResponseBodySize( HTTPRequestHandle hRequest, uint32 *unBodySize );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to get the response body size for. |
unBodySize | uint32 * | Returns the size of the response body. |
Gets the size of the body data from an HTTP response.
This must be called after the HTTP request has completed and returned the HTTP response via the
HTTPRequestCompleted_t or
HTTPRequestDataReceived_t associated with this request handle. If this returns successfully, then you can allocate a buffer with the provided size to fill with the data obtained from
GetHTTPResponseBodyData or
GetHTTPStreamingResponseBodyData.
Rückgabewert: bool
Returns
true upon success indicating that
unBodySize
has been filled with the size.
Otherwise, returns
false under the following conditions:
-
hRequest
was invalid.
- The request has not been sent or has not completed.
-
unBodySize
is NULL.
GetHTTPResponseHeaderSize
bool GetHTTPResponseHeaderSize( HTTPRequestHandle hRequest, const char *pchHeaderName, uint32 *unResponseHeaderSize );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to check for the response header name. |
pchHeaderName | const char * | Der zu überprüfende Header-Name. |
unResponseHeaderSize | uint32 * | Returns the size of the response header, if it is present in the response. |
Checks if a header is present in an HTTP response and returns its size.
This must be called after the HTTP request has completed and returned the HTTP response via the
HTTPRequestCompleted_t call result associated with this request handle. If the response header exists in the response, then you can allocate a correctly sized buffer to get the associated value with
GetHTTPResponseHeaderValue.
Eine Liste von Standardnamen für Antwort-Header finden Sie auf
Wikipedia.
Rückgabewert: bool
Returns
true if the header name is present in the response and
unResponseHeaderSize
has been filled with the size of the header value.
Otherwise, returns
false and sets
unResponseHeaderSize
to
0 under the following conditions:
-
hRequest
was invalid.
- The request has not been sent or has not completed.
-
pchHeaderName
is NULL.
-
unResponseHeaderSize
is NULL.
- Der Header-Name ist nicht in der Antwort enthalten.
GetHTTPResponseHeaderValue
bool GetHTTPResponseHeaderValue( HTTPRequestHandle hRequest, const char *pchHeaderName, uint8 *pHeaderValueBuffer, uint32 unBufferSize );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to get the response header value for. |
pchHeaderName | const char * | The header name to get the header value for. |
pHeaderValueBuffer | uint8 * | The buffer where the value will be copied into. |
unBufferSize | uint32 | This should be the size of pHeaderValueBuffer in bytes. |
Gets a header value from an HTTP response.
This must be called after the HTTP request has completed and returned the HTTP response via the
HTTPRequestCompleted_t call result associated with this request handle. You should first call
GetHTTPResponseHeaderSize to check for the presence of the header and to get the size. You can then allocate a buffer with that size and pass it into this function.
Eine Liste der Standardnamen für Antwort-Header finden Sie auf
Wikipedia.
Rückgabewert: bool
Returns
true upon success indicating that
pHeaderValueBuffer
has been filled with the header value.
Otherwise, returns
false under the following conditions:
-
hRequest
war ungültig.
- The request has not been sent or has not completed.
-
pchHeaderName
is NULL.
-
pHeaderValueBuffer
is NULL.
- The header name is not present in the response.
-
unBufferSize
is not large enough to hold the value.
GetHTTPStreamingResponseBodyData
bool GetHTTPStreamingResponseBodyData( HTTPRequestHandle hRequest, uint32 cOffset, uint8 *pBodyDataBuffer, uint32 unBufferSize );
Gets the body data from a streaming HTTP response.
This must be called after data is received from a streaming HTTP request via the
HTTPRequestDataReceived_t callback associated with this request handle. Typically you'll want to allocate a buffer associated with the request handle using the
Content-Length
HTTP response field to receive the total size of the data when you receive the header via
HTTPRequestHeadersReceived_t. You can then append data to that buffer as it comes in.
This is only for streaming HTTP requests which were sent with
SendHTTPRequestAndStreamResponse. Use
GetHTTPResponseBodyData if you're using
SendHTTPRequest.
Rückgabewert: bool
Returns
true upon success indicating that
pBodyDataBuffer
has been filled with the body data.
Otherwise, returns
false under the following conditions:
-
hRequest
war ungültig.
- The request has not been sent or has not completed.
- The request is not a streaming request.
-
cOffset
is not the same offset that was provided by HTTPRequestDataReceived_t.
-
unBufferSize
is not the same size that was provided by HTTPRequestDataReceived_t.
PrioritizeHTTPRequest
bool PrioritizeHTTPRequest( HTTPRequestHandle hRequest );
Prioritizes a request which has already been sent by moving it at the front of the queue.
Rückgabewert: bool
Returns
true if the request has been successfully prioritized. Otherwise
false if
hRequest
is an invalid handle, or if the request has not been sent yet.
Siehe auch: SendHTTPRequest,
SendHTTPRequestAndStreamResponseReleaseCookieContainer
bool ReleaseCookieContainer( HTTPCookieContainerHandle hCookieContainer );
Releases a cookie container, freeing the memory allocated within Steam.
You MUST call this when you are done using each HTTPCookieContainerHandle that you obtained via
CreateCookieContainer!
Rückgabewert: bool
Returns
true if the handle has been freed; otherwise,
false if the handle was invalid.
ReleaseHTTPRequest
bool ReleaseHTTPRequest( HTTPRequestHandle hRequest );
Releases an HTTP request handle, freeing the memory allocated within Steam.
You MUST call this when you are done using each HTTPRequestHandle that you obtained via
CreateHTTPRequest!
Rückgabewert: bool
Returns
true if the the handle was released successfully,
false only if the handle is invalid.
SendHTTPRequest
bool SendHTTPRequest( HTTPRequestHandle hRequest, SteamAPICall_t *pCallHandle );
Sends an HTTP request.
This call is asynchronous and provides a call result handle which you must use to track the call to its completion. If you have multiple requests in flight at the same time you can use
PrioritizeHTTPRequest or
DeferHTTPRequest to set the priority of the request.
Wenn der Benutzer im Offlinemodus auf Steam ist, fügt dies einen Cache-Control-Header des Typs \nur wenn zwischengespeichert\ hinzu und führt nur einen lokalen Cache-Suchvorgang durch, statt eine tatsächliche Remote-Anfrage zu senden.
If the data you are expecting is large, you can use
SendHTTPRequestAndStreamResponse to stream the data in chunks.
Rückgabewert: bool
Triggers a
HTTPRequestCompleted_t callback.
Returns
true upon successfully setting the parameter.
Returns
false under the following conditions:
-
hRequest
was invalid.
- The request has already been sent.
-
pCallHandle
is NULL.
SendHTTPRequestAndStreamResponse
bool SendHTTPRequestAndStreamResponse( HTTPRequestHandle hRequest, SteamAPICall_t *pCallHandle );
Sends an HTTP request and streams the response back in chunks.
This call is asynchronous and provides a call result handle which you must use to track the call to its completion. Typically you'll want to allocate a buffer associated with the request handle using the
Content-Length
HTTP response field to receive the total size of the data when you receive the header via
HTTPRequestHeadersReceived_t. You can then append data to that buffer as it comes in.
If you have multiple requests in flight at the same time you can use
PrioritizeHTTPRequest or
DeferHTTPRequest to set the priority of the request.
Wenn der Benutzer im Offlinemodus auf Steam ist, fügt dies einen Cache-Control-Header des Typs \nur wenn zwischengespeichert\ hinzu und führt nur einen lokalen Cache-Suchvorgang durch, statt eine tatsächliche Remote-Anfrage zu senden.
If the data you are expecting is small (on the order of a few megabytes or less) then you'll likely want to use
SendHTTPRequest.
Rückgabewert: bool
Triggers a
HTTPRequestDataReceived_t callback.
Triggers a
HTTPRequestHeadersReceived_t callback.
Triggers a
HTTPRequestCompleted_t callback.
Returns
true upon successfully setting the parameter.
Returns
false under the following conditions:
-
hRequest
was invalid.
- The request has already been sent.
-
pCallHandle
is NULL.
SetCookie
bool SetCookie( HTTPCookieContainerHandle hCookieContainer, const char *pchHost, const char *pchUrl, const char *pchCookie );
Name | Type | Beschreibung |
hCookieContainer | HTTPCookieContainerHandle | The cookie container to set the the cookie in. |
pchHost | const char * | The host to set this cookie for. |
pchUrl | const char * | The url to set this cookie for. |
pchCookie | const char * | The cookie to set. |
Adds a cookie to the specified cookie container that will be used with future requests.
Rückgabewert: bool
Returns
true if the cookie was set successfully. Otherwise,
false if the request handle was invalid or if there was a security issue parsing the cookie.
SetHTTPRequestAbsoluteTimeoutMS
bool SetHTTPRequestAbsoluteTimeoutMS( HTTPRequestHandle hRequest, uint32 unMilliseconds );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to set the timeout on. |
unMilliseconds | uint32 | The length of the timeout period in milliseconds. |
Set an absolute timeout in milliseconds for the HTTP request.
This is the total time timeout which is different than the network activity timeout which is set with
SetHTTPRequestNetworkActivityTimeout which can bump everytime we get more data.
Rückgabewert: bool
Returns
true upon successfully setting the timeout.
Returns
false under the following conditions:
-
hRequest
was invalid.
- The request has already been sent.
SetHTTPRequestContextValue
bool SetHTTPRequestContextValue( HTTPRequestHandle hRequest, uint64 ulContextValue );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to set the context value on. |
ulContextValue | uint64 | The context value to set. |
Set a context value for the request, which will be returned in the
HTTPRequestCompleted_t callback after sending the request.
This allows the caller to set a context ID that can enable attribution of a particular callback to a particular request.
Must be called before sending the request.
Rückgabewert: bool
Returns
true upon successfully setting the context value.
Returns
false under the following conditions:
-
hRequest
war ungültig.
- The request has already been sent.
SetHTTPRequestCookieContainer
bool SetHTTPRequestCookieContainer( HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to associate the cookie container with. |
hCookieContainer | HTTPCookieContainerHandle | The cookie container handle to associate with the request handle. |
Associates a cookie container to use for an HTTP request.
Rückgabewert: bool
Returns
true upon successfully setting the cookie container.
Returns
false under the following conditions:
-
hRequest
war ungültig.
-
hCookieContainer
war ungültig.
SetHTTPRequestGetOrPostParameter
bool SetHTTPRequestGetOrPostParameter( HTTPRequestHandle hRequest, const char *pchParamName, const char *pchParamValue );
Name | Type | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to set the parameter on. |
pchParamName | const char * | Parameter name field. |
pchParamValue | const char * | Mit dem Namensfeld zu verknüpfender Wert. |
Set a GET or POST parameter value on the HTTP request.
Must be called prior to sending the request.
Rückgabewert: bool
Returns
true upon successfully setting the parameter.
Returns
false under the following conditions:
SetHTTPRequestHeaderValue
bool SetHTTPRequestHeaderValue( HTTPRequestHandle hRequest, const char *pchHeaderName, const char *pchHeaderValue );
Name | Type | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to set the header value for. |
pchHeaderName | const char * | Das Header-Namensfeld. |
pchHeaderValue | const char * | Mit dem Header-Namensfeld zu verknüpfender Wert. |
Set a request header value for the HTTP request.
Must be called before sending the request.
A full list of standard request fields are available here on
wikipedia. The User-Agent field is explicitly disallowed as it gets overwritten when the request is sent.
Rückgabewert: bool
Returns
true upon successfully setting the header value.
Returns
false under the following conditions:
-
hRequest
war ungültig.
- The request has already been sent.
-
pchHeaderName
ist „User-Agent“.
-
pchHeaderName
oder pchHeaderValue
sind NULL.
SetHTTPRequestNetworkActivityTimeout
bool SetHTTPRequestNetworkActivityTimeout( HTTPRequestHandle hRequest, uint32 unTimeoutSeconds );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to set the timeout on. |
unTimeoutSeconds | uint32 | The length of the timeout period in seconds. |
Set the timeout in seconds for the HTTP request.
The default timeout is 60 seconds if you don't call this. This can get bumped everytime we get more data. Use
SetHTTPRequestAbsoluteTimeoutMS if you need a strict maximum timeout.
Rückgabewert: bool
Returns
true upon successfully setting the timeout.
Returns
false under the following conditions:
-
hRequest
war ungültig.
- The request has already been sent.
SetHTTPRequestRawPostBody
bool SetHTTPRequestRawPostBody( HTTPRequestHandle hRequest, const char *pchContentType, uint8 *pubBody, uint32 unBodyLen );
Name | Type | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to set the post body on. |
pchContentType | const char * | Setzt den Aufrufswert des „content-type“-HTTP-Headers. |
pubBody | uint8 * | The raw POST body data to set. |
unBodyLen | uint32 | The length of the body data passed into pubBody . |
Sets the body for an HTTP Post request.
Will fail and return false on a GET request, and will fail if POST params have already been set for the request. Setting this raw body makes it the only contents for the post, the
pchContentType
parameter will set the "content-type" header for the request to inform the server how to interpret the body.
Rückgabewert: bool
Returns
true upon success indicating that the content-type field and the body data have been set.
Otherwise, returns
false under the following conditions:
SetHTTPRequestRequiresVerifiedCertificate
bool SetHTTPRequestRequiresVerifiedCertificate( HTTPRequestHandle hRequest, bool bRequireVerifiedCertificate );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to set whether the request requires a verified certificate. |
bRequireVerifiedCertificate | bool | Turn on verified certificate? |
Sets that the HTTPS request should require verified SSL certificate via machines certificate trust store.
This currently only works Windows and macOS.
Rückgabewert: bool
Returns
true upon success. Otherwise,
false if the request handle is invalid.
SetHTTPRequestUserAgentInfo
bool SetHTTPRequestUserAgentInfo( HTTPRequestHandle hRequest, const char *pchUserAgentInfo );
Name | Typ | Beschreibung |
hRequest | HTTPRequestHandle | The request handle to set the user agent info for. |
pchUserAgentInfo | const char * | The string to append to the end of the user agent. |
Set additional user agent info for a request.
This doesn't clobber the normal user agent, it just adds the extra info on the end. Sending
NULL or an empty string resets the user agent info to the default value.
Rückgabewert: bool
Returns
true upon success indicating that the user agent has been updated. Otherwise,
false if the request handle is invalid.
Callbacks
These are callbacks which can be fired by calling
SteamAPI_RunCallbacks. Many of these will be fired directly in response to the member functions of
ISteamHTTP
.
HTTPRequestCompleted_t
Result when an HTTP request completes.
If you're using
GetHTTPStreamingResponseBodyData then you should be using the
HTTPRequestHeadersReceived_t or
HTTPRequestDataReceived_t.
Name | Typ | Beschreibung |
m_hRequest | HTTPRequestHandle | Handle for the request that has completed. You should call ReleaseHTTPRequest on this handle to free the resources when you're done using it, which is typically in this callback. |
m_ulContextValue | uint64 | Context value that the user defined on the request with SetHTTPRequestContextValue that this callback is associated with. 0 if no context value was set. |
m_bRequestSuccessful | bool | This will be true if the request actually got any sort of response from the server (even an error). Otherwise it will be false if the request failed due to an internal error or client side network failure. |
m_eStatusCode | EHTTPStatusCode | Will be the HTTP status code value returned by the server. k_EHTTPStatusCode200OK is the normal OK response, if you get something else you probably need to treat it as a failure. |
m_unBodySize | uint32 | Die Größe des Anfragetexts in Byte. This is the same as GetHTTPResponseBodySize. |
Verknüpfte Funktionen: SendHTTPRequest,
SendHTTPRequestAndStreamResponseHTTPRequestDataReceived_t
Triggered when a chunk of data is received from a streaming HTTP request.
Verknüpfte Funktionen: SendHTTPRequestAndStreamResponseHTTPRequestHeadersReceived_t
Triggered when HTTP headers are received from a streaming HTTP request.
Name | Typ | Beschreibung |
m_hRequest | HTTPRequestHandle | Handle value for the request that has received headers. |
m_ulContextValue | uint64 | Context value that the user defined on the request that this callback is associated with, 0 if no context value was set. |
Verknüpfte Funktionen: SendHTTPRequestAndStreamResponseEnums
These are enums which are defined for use with ISteamHTTP.
EHTTPMethod
Used to set the HTTP request method in
CreateHTTPRequest. For the most part you should only ever need GET or POST.
You can read more about HTTP request methods on the
Mozilla Developer Network.
Name | Value | Beschreibung |
k_EHTTPMethodInvalid | 0 | Invalid. |
k_EHTTPMethodGET | 1 | The HTTP Method is set to GET. |
k_EHTTPMethodHEAD | 2 | The HTTP Method is set to HEAD. |
k_EHTTPMethodPOST | 3 | The HTTP Method is set to POST. |
k_EHTTPMethodPUT | 4 | The HTTP Method is set to PUT. |
k_EHTTPMethodDELETE | 5 | The HTTP Method is set to DELETE. |
k_EHTTPMethodOPTIONS | 6 | The HTTP Method is set to OPTIONS. |
k_EHTTPMethodPATCH | 7 | The HTTP Method is set to PATCH. |
EHTTPStatusCode
HTTP response status codes that the server can send in response to a request.
Ausführliche Beschreibungen dieser Codes finden Sie im
Mozilla Developer Network oder in RFC2616, Abschnitt 10.3.
Name | Value | Beschreibung |
k_EHTTPStatusCodeInvalid | 0 | Invalid status code. This isn't defined in HTTP, used to indicate unset in our code. |
k_EHTTPStatusCode100Continue | 100 | |
k_EHTTPStatusCode101SwitchingProtocols | 101 | |
k_EHTTPStatusCode200OK | 200 | |
k_EHTTPStatusCode201Created | 201 | |
k_EHTTPStatusCode202Accepted | 202 | |
k_EHTTPStatusCode203NonAuthoritative | 203 | |
k_EHTTPStatusCode204NoContent | 204 | |
k_EHTTPStatusCode205ResetContent | 205 | |
k_EHTTPStatusCode206PartialContent | 206 | |
k_EHTTPStatusCode300MultipleChoices | 300 | |
k_EHTTPStatusCode301MovedPermanently | 301 | |
k_EHTTPStatusCode302Found | 302 | |
k_EHTTPStatusCode303SeeOther | 303 | |
k_EHTTPStatusCode304NotModified | 304 | |
k_EHTTPStatusCode305UseProxy | 305 | |
k_EHTTPStatusCode307TemporaryRedirect | 307 | |
k_EHTTPStatusCode400BadRequest | 400 | |
k_EHTTPStatusCode401Unauthorized | 401 | You probably want 403 or something else. 401 implies you're sending a WWW-Authenticate header and the client can sent an Authorization header in response. |
k_EHTTPStatusCode402PaymentRequired | 402 | This is reserved for future HTTP specs, not really supported by clients. |
k_EHTTPStatusCode403Forbidden | 403 | |
k_EHTTPStatusCode404NotFound | 404 | |
k_EHTTPStatusCode405MethodNotAllowed | 405 | |
k_EHTTPStatusCode406NotAcceptable | 406 | |
k_EHTTPStatusCode407ProxyAuthRequired | 407 | |
k_EHTTPStatusCode408RequestTimeout | 408 | |
k_EHTTPStatusCode409Conflict | 409 | |
k_EHTTPStatusCode410Gone | 410 | |
k_EHTTPStatusCode411LengthRequired | 411 | |
k_EHTTPStatusCode412PreconditionFailed | 412 | |
k_EHTTPStatusCode413RequestEntityTooLarge | 413 | |
k_EHTTPStatusCode414RequestURITooLong | 414 | |
k_EHTTPStatusCode415UnsupportedMediaType | 415 | |
k_EHTTPStatusCode416RequestedRangeNotSatisfiable | 416 | |
k_EHTTPStatusCode417ExpectationFailed | 417 | |
k_EHTTPStatusCode4xxUnknown | 418 | 418 is reserved, so we use it to mean unknown. |
k_EHTTPStatusCode429TooManyRequests | 429 | |
k_EHTTPStatusCode500InternalServerError | 500 | |
k_EHTTPStatusCode501NotImplemented | 501 | |
k_EHTTPStatusCode502BadGateway | 502 | |
k_EHTTPStatusCode503ServiceUnavailable | 503 | |
k_EHTTPStatusCode504GatewayTimeout | 504 | |
k_EHTTPStatusCode505HTTPVersionNotSupported | 505 | |
k_EHTTPStatusCode5xxUnknown | 599 | |
Typdefinitionen
These are typedefs which are defined for use with ISteamHTTP.
Name | Basistyp | Beschreibung |
HTTPCookieContainerHandle | uint32 | |
HTTPRequestHandle | uint32 | Handle to a HTTP Request handle |
Konstanten
These are constants which are defined for use with ISteamHTTP.
Name | Typ | Value | Beschreibung |
INVALID_HTTPCOOKIE_HANDLE | int | 0 | |
INVALID_HTTPREQUEST_HANDLE | int | 0 | |
STEAMHTTP_INTERFACE_VERSION | const char * | „STEAMHTTP_INTERFACE_VERSION002“ | |