Reference Codebot.Networking.Web.pas
Part of the Codebot package
The Codebot.Networking.Web unit makes HTTP requests.
- TUrl parses a URL into its parts.
- WebSendRequest performs an HTTP 1.1 request and supports chunked replies.
- THttpClient is a reusable HTTP client, and THttpPost sends multipart post requests.
- WebGet and WebPost are simplified requests that write the response to a stream or a string, and CurlGet does the same using the curl program.
The unit also provides routines that build GET and POST requests, parse response headers, encode and decode URLs and their arguments, and find the MIME type of a file.
Items 86 items
| Name | Kind | Line |
|---|---|---|
| ArgsDecode | function | 313 |
| ArgsEncode | function | 311 |
| ContentArgs | constant | 290 |
| ContentHtml | constant | 289 |
| ContentJson | constant | 291 |
| ContentNone | constant | 287 |
| ContentText | constant | 288 |
| ContentXml | constant | 292 |
| HttpRequestGet | function | 299 |
| HttpRequestPostArgs | function | 301 |
| HttpRequestPostJson | function | 303 |
| HttpRequestPostXml | function | 305 |
| HttpResponseHeaderExtract | function | 296 |
| MimeType | function | 315 |
| SDefaultUA | constant | 267 |
| THttpClient | class | 181 |
| Cancel | procedure | 219 |
| Clear | procedure | 217 |
| Complete | procedure | 203 |
| CopyHeader | procedure | 221 |
| Create | constructor | 214 |
| Destroy | destructor | 215 |
| DoCancel | procedure | 205 |
| DoComplete | procedure | 209 |
| DoHeaderComplete | procedure | 207 |
| DoProgress | procedure | 211 |
| Get | function | 223, 225 |
| Post | function | 227 |
| PostArgs | function | 230 |
| PostJson | function | 232 |
| PostXml | function | 234 |
| BufferSize | property | 236 |
| Code | property | 242 |
| Completed | property | 238 |
| NameCount | property | 250 |
| Names | property | 246 |
| OnCancel | property | 256 |
| OnComplete | property | 262 |
| OnHeaderComplete | property | 258 |
| OnProgress | property | 260 |
| ResponseStream | property | 252 |
| ResponseText | property | 254 |
| Status | property | 244 |
| UserAgent | property | 240 |
| Values | property | 248 |
| THttpPost | class | 124 |
| AddFile | function | 160, 161, 162 |
| AddHeader | function | 154 |
| AddStream | function | 164, 165 |
| AddText | function | 156, 157, 158 |
| Build | procedure | 167 |
| Clear | procedure | 152 |
| Create | constructor | 148 |
| Destroy | destructor | 150 |
| Request | property | 169 |
| THttpResponseHeader | record | 70 |
| Code | field | 73 |
| Keys | field | 77 |
| RawHeader | field | 79 |
| Status | field | 75 |
| Valid | field | 81 |
| Clear | procedure | 83 |
| Extract | function | 85 |
| TResponseStatus | enum | 90 |
| rsNoConnect | enum value | 92 |
| rsNoResponse | enum value | 94 |
| rsError | enum value | 96 |
| rsSuccess | enum value | 98 |
| rsCancelled | enum value | 100 |
| TTransmistHeaderCompleteEvent | procedural | 175 |
| TUrl | record | 33 |
| Create | function | 48 |
| Implicit | operator | 44, 46 |
| AsString | property | 62 |
| Domain | property | 54 |
| Port | property | 52 |
| Protocol | property | 50 |
| Resource | property | 56 |
| Secure | property | 58 |
| Valid | property | 60 |
| UrlDecode | function | 309 |
| UrlEncode | function | 307 |
| WebGet | function | 270, 272 |
| WebPost | function | 274, 276 |
| WebSendRequest | function | 103, 105 |
| WebSendRequestStream | function | 109, 111 |