port=443, the connection will be made with ssl.
| avail() | Get the number of bytes which can be read without blocking. |
| close() | Close the socket. |
| connect(stream=...) | Connect this socket to a stream. |
| discardContent() | Discard all remaining bytes of content. |
| field(name) | Get a field from the response header. |
| flush() | Flush the socket, sending all output. |
| handleResponse() | Handle a response, i.e. parse a response header. |
| numfield(name) | Get a numeric field from the response header. |
| read(len) | Read a number of bytes from the socket. |
| readContent(len) | Read up to a given number of bytes from the content. |
| readln(maxlen=...) | Read a line up to a maximum length from the socket. |
| request(method, path, params=..., fields=...) | Send a request. |
| write(s) | Write a string to the socket. |
| writeln(s) | Write a string and a CRLF pair to the socket. |