HttpRequest::HttpRequest(const std::string& uri, const HttpMethod method, const std::string& body) { SetUri(uri); SetHttpVersion(HttpVersion(1, 0)); this->method = method; this->body = body; }
void Downloader::Open (const char *verb, const Uri *uri, DownloaderAccessPolicy policy) { LOG_DOWNLOADER ("Downloader::Open (%s, %p)\n", verb, uri); OpenInitialize (); request->Open (verb, uri, /* This is probably not right when we use Downloader internally */ NULL, policy); if (failed_msg == NULL) SetUri (uri); }
void sfHttpRequest_SetUri(sfHttpRequest* httpRequest, const char* uri) { CSFML_CALL(httpRequest, SetUri(uri ? uri : "")); }