nimTitle httpclient httpclient.html module std/httpclient 0 nim Response httpclient.html#Response type Response 258 nim AsyncResponse httpclient.html#AsyncResponse type AsyncResponse 265 nim code httpclient.html#code proc code(response: Response | AsyncResponse): HttpCode 272 nim contentType httpclient.html#contentType proc contentType(response: Response | AsyncResponse): string 280 nim contentLength httpclient.html#contentLength proc contentLength(response: Response | AsyncResponse): int 286 nim lastModified httpclient.html#lastModified proc lastModified(response: Response | AsyncResponse): DateTime 296 nim body httpclient.html#body,Response proc body(response: Response): string 306 nim body httpclient.html#body,AsyncResponse proc body(response: AsyncResponse): Future[string] 314 nim Proxy httpclient.html#Proxy type Proxy 322 nim MultipartEntries httpclient.html#MultipartEntries type MultipartEntries 335 nim MultipartData httpclient.html#MultipartData type MultipartData 336 nim ProtocolError httpclient.html#ProtocolError object ProtocolError 339 nim HttpRequestError httpclient.html#HttpRequestError object HttpRequestError 343 nim defUserAgent httpclient.html#defUserAgent const defUserAgent 347 nim newProxy httpclient.html#newProxy,string,string proc newProxy(url: string; auth = ""): Proxy 373 nim newProxy httpclient.html#newProxy,Uri,string proc newProxy(url: Uri; auth = ""): Proxy 377 nim newMultipartData httpclient.html#newMultipartData proc newMultipartData(): MultipartData 381 nim `$` httpclient.html#$,MultipartData proc `$`(data: MultipartData): string 385 nim add httpclient.html#add,MultipartData,string,string,string,string proc add(p: MultipartData; name, content: string; filename: string = "";\n contentType: string = ""; useStream = true) 397 nim add httpclient.html#add,MultipartData,MultipartEntries proc add(p: MultipartData; xs: MultipartEntries): MultipartData 425 nim newMultipartData httpclient.html#newMultipartData,MultipartEntries proc newMultipartData(xs: MultipartEntries): MultipartData 436 nim addFiles httpclient.html#addFiles,MultipartData,openArray[tuple[string,string]] proc addFiles(p: MultipartData; xs: openArray[tuple[name, file: string]];\n mimeDb = newMimetypes(); useStream = true): MultipartData 446 nim `[]=` httpclient.html#[]=,MultipartData,string,string proc `[]=`(p: MultipartData; name, content: string) 467 nim `[]=` httpclient.html#[]=,MultipartData,string,tuple[string,string,string] proc `[]=`(p: MultipartData; name: string;\n file: tuple[name, contentType, content: string]) 475 nim ProgressChangedProc httpclient.html#ProgressChangedProc type ProgressChangedProc 565 nim HttpClientBase httpclient.html#HttpClientBase type HttpClientBase 569 nim HttpClient httpclient.html#HttpClient type HttpClient 597 nim newHttpClient httpclient.html#newHttpClient,int,Proxy,int proc newHttpClient(userAgent = defUserAgent; maxRedirects = 5;\n sslContext = getDefaultSSL(); proxy: Proxy = nil; timeout = -1;\n headers = newHttpHeaders()): HttpClient 599 nim AsyncHttpClient httpclient.html#AsyncHttpClient type AsyncHttpClient 640 nim newAsyncHttpClient httpclient.html#newAsyncHttpClient,int,Proxy proc newAsyncHttpClient(userAgent = defUserAgent; maxRedirects = 5;\n sslContext = getDefaultSSL(); proxy: Proxy = nil;\n headers = newHttpHeaders()): AsyncHttpClient 642 nim close httpclient.html#close proc close(client: HttpClient | AsyncHttpClient) 682 nim getSocket httpclient.html#getSocket,HttpClient proc getSocket(client: HttpClient): Socket 688 nim getSocket httpclient.html#getSocket,AsyncHttpClient proc getSocket(client: AsyncHttpClient): AsyncSocket 700 nim request httpclient.html#request,AsyncHttpClient,,string,HttpHeaders,MultipartData proc request(client: AsyncHttpClient; url: Uri | string;\n httpMethod: HttpMethod | string = HttpGet; body = "";\n headers: HttpHeaders = nil; multipart: MultipartData = nil): Future[\n AsyncResponse] 1093 nim request httpclient.html#request,HttpClient,,string,HttpHeaders,MultipartData proc request(client: HttpClient; url: Uri | string;\n httpMethod: HttpMethod | string = HttpGet; body = "";\n headers: HttpHeaders = nil; multipart: MultipartData = nil): Response 1097 nim head httpclient.html#head,AsyncHttpClient, proc head(client: AsyncHttpClient; url: Uri | string): Future[AsyncResponse] 1205 nim head httpclient.html#head,HttpClient, proc head(client: HttpClient; url: Uri | string): Response 1206 nim get httpclient.html#get,AsyncHttpClient, proc get(client: AsyncHttpClient; url: Uri | string): Future[AsyncResponse] 1212 nim get httpclient.html#get,HttpClient, proc get(client: HttpClient; url: Uri | string): Response 1213 nim getContent httpclient.html#getContent,AsyncHttpClient, proc getContent(client: AsyncHttpClient; url: Uri | string): Future[string] 1219 nim getContent httpclient.html#getContent,HttpClient, proc getContent(client: HttpClient; url: Uri | string): string 1220 nim delete httpclient.html#delete,AsyncHttpClient, proc delete(client: AsyncHttpClient; url: Uri | string): Future[AsyncResponse] 1225 nim delete httpclient.html#delete,HttpClient, proc delete(client: HttpClient; url: Uri | string): Response 1226 nim deleteContent httpclient.html#deleteContent,AsyncHttpClient, proc deleteContent(client: AsyncHttpClient; url: Uri | string): Future[string] 1231 nim deleteContent httpclient.html#deleteContent,HttpClient, proc deleteContent(client: HttpClient; url: Uri | string): string 1232 nim post httpclient.html#post,AsyncHttpClient,,string,MultipartData proc post(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[AsyncResponse] 1237 nim post httpclient.html#post,HttpClient,,string,MultipartData proc post(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Response 1239 nim postContent httpclient.html#postContent,AsyncHttpClient,,string,MultipartData proc postContent(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[string] 1244 nim postContent httpclient.html#postContent,HttpClient,,string,MultipartData proc postContent(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): string 1246 nim put httpclient.html#put,AsyncHttpClient,,string,MultipartData proc put(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[AsyncResponse] 1251 nim put httpclient.html#put,HttpClient,,string,MultipartData proc put(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Response 1253 nim putContent httpclient.html#putContent,AsyncHttpClient,,string,MultipartData proc putContent(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[string] 1258 nim putContent httpclient.html#putContent,HttpClient,,string,MultipartData proc putContent(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): string 1259 nim patch httpclient.html#patch,AsyncHttpClient,,string,MultipartData proc patch(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[AsyncResponse] 1264 nim patch httpclient.html#patch,HttpClient,,string,MultipartData proc patch(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Response 1266 nim patchContent httpclient.html#patchContent,AsyncHttpClient,,string,MultipartData proc patchContent(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[string] 1271 nim patchContent httpclient.html#patchContent,HttpClient,,string,MultipartData proc patchContent(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): string 1273 nim downloadFile httpclient.html#downloadFile,HttpClient,,string proc downloadFile(client: HttpClient; url: Uri | string; filename: string) 1278 nim downloadFile httpclient.html#downloadFile,AsyncHttpClient,,string proc downloadFile(client: AsyncHttpClient; url: Uri | string; filename: string): Future[\n void] 1316 heading Retrieving a website httpclient.html#retrieving-a-website Retrieving a website 0 heading Using HTTP POST httpclient.html#using-http-post Using HTTP POST 0 heading Progress reporting httpclient.html#progress-reporting Progress reporting 0 heading SSL/TLS support httpclient.html#sslslashtls-support SSL/TLS support 0 heading Timeouts httpclient.html#timeouts Timeouts 0 heading Proxy httpclient.html#proxy Proxy 0 heading Redirects httpclient.html#redirects Redirects 0 nimgrp postcontent httpclient.html#postContent-procs-all proc 1244 nimgrp put httpclient.html#put-procs-all proc 1251 nimgrp head httpclient.html#head-procs-all proc 1205 nimgrp []= httpclient.html#[]=-procs-all proc 467 nimgrp post httpclient.html#post-procs-all proc 1237 nimgrp add httpclient.html#add-procs-all proc 397 nimgrp deletecontent httpclient.html#deleteContent-procs-all proc 1231 nimgrp putcontent httpclient.html#putContent-procs-all proc 1258 nimgrp get httpclient.html#get-procs-all proc 1212 nimgrp newmultipartdata httpclient.html#newMultipartData-procs-all proc 381 nimgrp patch httpclient.html#patch-procs-all proc 1264 nimgrp body httpclient.html#body-procs-all proc 306 nimgrp getsocket httpclient.html#getSocket-procs-all proc 688 nimgrp delete httpclient.html#delete-procs-all proc 1225 nimgrp getcontent httpclient.html#getContent-procs-all proc 1219 nimgrp request httpclient.html#request-procs-all proc 1093 nimgrp downloadfile httpclient.html#downloadFile-procs-all proc 1278 nimgrp newproxy httpclient.html#newProxy-procs-all proc 373 nimgrp patchcontent httpclient.html#patchContent-procs-all proc 1271