mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
90 lines
10 KiB
Plaintext
90 lines
10 KiB
Plaintext
nimTitle httpclient httpclient.html module std/httpclient 0
|
|
nim Response httpclient.html#Response type Response 284
|
|
nim AsyncResponse httpclient.html#AsyncResponse type AsyncResponse 291
|
|
nim code httpclient.html#code proc code(response: Response | AsyncResponse): HttpCode 298
|
|
nim contentType httpclient.html#contentType proc contentType(response: Response | AsyncResponse): string 306
|
|
nim contentLength httpclient.html#contentLength proc contentLength(response: Response | AsyncResponse): int 312
|
|
nim lastModified httpclient.html#lastModified proc lastModified(response: Response | AsyncResponse): DateTime 322
|
|
nim body httpclient.html#body,Response proc body(response: Response): string 332
|
|
nim body httpclient.html#body,AsyncResponse proc body(response: AsyncResponse): Future[string] 340
|
|
nim Proxy httpclient.html#Proxy type Proxy 348
|
|
nim MultipartEntries httpclient.html#MultipartEntries type MultipartEntries 360
|
|
nim MultipartData httpclient.html#MultipartData type MultipartData 361
|
|
nim ProtocolError httpclient.html#ProtocolError object ProtocolError 364
|
|
nim HttpRequestError httpclient.html#HttpRequestError object HttpRequestError 368
|
|
nim defUserAgent httpclient.html#defUserAgent const defUserAgent 372
|
|
nim newProxy httpclient.html#newProxy,Uri proc newProxy(url: Uri): Proxy 398
|
|
nim newProxy httpclient.html#newProxy,string proc newProxy(url: string): Proxy 402
|
|
nim newProxy httpclient.html#newProxy,Uri,string proc newProxy(url: Uri; auth: string): Proxy 406
|
|
nim newProxy httpclient.html#newProxy,string,string proc newProxy(url: string; auth: string): Proxy 415
|
|
nim auth httpclient.html#auth,Proxy proc auth(p: Proxy): string 418
|
|
nim newMultipartData httpclient.html#newMultipartData proc newMultipartData(): MultipartData 423
|
|
nim `$` httpclient.html#$,MultipartData proc `$`(data: MultipartData): string 427
|
|
nim add httpclient.html#add,MultipartData,string,string,string,string proc add(p: MultipartData; name, content: string; filename: string = "";\n contentType: string = ""; useStream = true) 440
|
|
nim add httpclient.html#add,MultipartData,MultipartEntries proc add(p: MultipartData; xs: MultipartEntries): MultipartData 468
|
|
nim newMultipartData httpclient.html#newMultipartData,MultipartEntries proc newMultipartData(xs: MultipartEntries): MultipartData 480
|
|
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 491
|
|
nim `[]=` httpclient.html#[]=,MultipartData,string,string proc `[]=`(p: MultipartData; name, content: string) 513
|
|
nim `[]=` httpclient.html#[]=,MultipartData,string,tuple[string,string,string] proc `[]=`(p: MultipartData; name: string;\n file: tuple[name, contentType, content: string]) 522
|
|
nim ProgressChangedProc httpclient.html#ProgressChangedProc type ProgressChangedProc 613
|
|
nim HttpClientBase httpclient.html#HttpClientBase type HttpClientBase 617
|
|
nim HttpClient httpclient.html#HttpClient type HttpClient 645
|
|
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 647
|
|
nim AsyncHttpClient httpclient.html#AsyncHttpClient type AsyncHttpClient 688
|
|
nim newAsyncHttpClient httpclient.html#newAsyncHttpClient,int,Proxy proc newAsyncHttpClient(userAgent = defUserAgent; maxRedirects = 5;\n sslContext = getDefaultSSL(); proxy: Proxy = nil;\n headers = newHttpHeaders()): AsyncHttpClient 690
|
|
nim close httpclient.html#close proc close(client: HttpClient | AsyncHttpClient) 730
|
|
nim getSocket httpclient.html#getSocket,HttpClient proc getSocket(client: HttpClient): Socket 736
|
|
nim getSocket httpclient.html#getSocket,AsyncHttpClient proc getSocket(client: AsyncHttpClient): AsyncSocket 748
|
|
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] 1210
|
|
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 1214
|
|
nim head httpclient.html#head,AsyncHttpClient, proc head(client: AsyncHttpClient; url: Uri | string): Future[AsyncResponse] 1322
|
|
nim head httpclient.html#head,HttpClient, proc head(client: HttpClient; url: Uri | string): Response 1323
|
|
nim get httpclient.html#get,AsyncHttpClient, proc get(client: AsyncHttpClient; url: Uri | string): Future[AsyncResponse] 1329
|
|
nim get httpclient.html#get,HttpClient, proc get(client: HttpClient; url: Uri | string): Response 1330
|
|
nim getContent httpclient.html#getContent,AsyncHttpClient, proc getContent(client: AsyncHttpClient; url: Uri | string): Future[string] 1336
|
|
nim getContent httpclient.html#getContent,HttpClient, proc getContent(client: HttpClient; url: Uri | string): string 1337
|
|
nim delete httpclient.html#delete,AsyncHttpClient, proc delete(client: AsyncHttpClient; url: Uri | string): Future[AsyncResponse] 1342
|
|
nim delete httpclient.html#delete,HttpClient, proc delete(client: HttpClient; url: Uri | string): Response 1343
|
|
nim deleteContent httpclient.html#deleteContent,AsyncHttpClient, proc deleteContent(client: AsyncHttpClient; url: Uri | string): Future[string] 1348
|
|
nim deleteContent httpclient.html#deleteContent,HttpClient, proc deleteContent(client: HttpClient; url: Uri | string): string 1349
|
|
nim post httpclient.html#post,AsyncHttpClient,,string,MultipartData proc post(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[AsyncResponse] 1354
|
|
nim post httpclient.html#post,HttpClient,,string,MultipartData proc post(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Response 1356
|
|
nim postContent httpclient.html#postContent,AsyncHttpClient,,string,MultipartData proc postContent(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[string] 1361
|
|
nim postContent httpclient.html#postContent,HttpClient,,string,MultipartData proc postContent(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): string 1363
|
|
nim put httpclient.html#put,AsyncHttpClient,,string,MultipartData proc put(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[AsyncResponse] 1368
|
|
nim put httpclient.html#put,HttpClient,,string,MultipartData proc put(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Response 1370
|
|
nim putContent httpclient.html#putContent,AsyncHttpClient,,string,MultipartData proc putContent(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[string] 1375
|
|
nim putContent httpclient.html#putContent,HttpClient,,string,MultipartData proc putContent(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): string 1376
|
|
nim patch httpclient.html#patch,AsyncHttpClient,,string,MultipartData proc patch(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[AsyncResponse] 1381
|
|
nim patch httpclient.html#patch,HttpClient,,string,MultipartData proc patch(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Response 1383
|
|
nim patchContent httpclient.html#patchContent,AsyncHttpClient,,string,MultipartData proc patchContent(client: AsyncHttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): Future[string] 1388
|
|
nim patchContent httpclient.html#patchContent,HttpClient,,string,MultipartData proc patchContent(client: HttpClient; url: Uri | string; body = "";\n multipart: MultipartData = nil): string 1390
|
|
nim downloadFile httpclient.html#downloadFile,HttpClient,,string proc downloadFile(client: HttpClient; url: Uri | string; filename: string) 1395
|
|
nim downloadFile httpclient.html#downloadFile,AsyncHttpClient,,string proc downloadFile(client: AsyncHttpClient; url: Uri | string; filename: string): Future[\n void] 1433
|
|
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 body httpclient.html#body-procs-all proc 332
|
|
nimgrp request httpclient.html#request-procs-all proc 1210
|
|
nimgrp getsocket httpclient.html#getSocket-procs-all proc 736
|
|
nimgrp postcontent httpclient.html#postContent-procs-all proc 1361
|
|
nimgrp newmultipartdata httpclient.html#newMultipartData-procs-all proc 423
|
|
nimgrp patchcontent httpclient.html#patchContent-procs-all proc 1388
|
|
nimgrp []= httpclient.html#[]=-procs-all proc 513
|
|
nimgrp putcontent httpclient.html#putContent-procs-all proc 1375
|
|
nimgrp delete httpclient.html#delete-procs-all proc 1342
|
|
nimgrp getcontent httpclient.html#getContent-procs-all proc 1336
|
|
nimgrp post httpclient.html#post-procs-all proc 1354
|
|
nimgrp get httpclient.html#get-procs-all proc 1329
|
|
nimgrp downloadfile httpclient.html#downloadFile-procs-all proc 1395
|
|
nimgrp add httpclient.html#add-procs-all proc 440
|
|
nimgrp deletecontent httpclient.html#deleteContent-procs-all proc 1348
|
|
nimgrp newproxy httpclient.html#newProxy-procs-all proc 398
|
|
nimgrp head httpclient.html#head-procs-all proc 1322
|
|
nimgrp put httpclient.html#put-procs-all proc 1368
|
|
nimgrp patch httpclient.html#patch-procs-all proc 1381
|