| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | client: Only get cert if TrustCertificate is set | Adnan Maolood | 2021-03-20 | 1 | -1/+1 |
| | | |||||
| * | client: Close connection on error | Adnan Maolood | 2021-03-20 | 1 | -0/+3 |
| | | |||||
| * | client: Remove hostname verification check | Adnan Maolood | 2021-03-04 | 1 | -4/+0 |
| | | |||||
| * | client: Ignore certificate expiration time | Adnan Maolood | 2021-03-04 | 1 | -5/+0 |
| | | |||||
| * | Make Request implement io.WriterTo | Adnan Maolood | 2021-02-28 | 1 | -1/+1 |
| | | |||||
| * | client: Fix copying of request | Adnan Maolood | 2021-02-24 | 1 | -3/+4 |
| | | |||||
| * | Move I/O utilities to io.go | Adnan Maolood | 2021-02-23 | 1 | -53/+0 |
| | | |||||
| * | client: Clarify usage of contexts | Adnan Maolood | 2021-02-23 | 1 | -6/+6 |
| | | |||||
| * | Update documentation | Adnan Maolood | 2021-02-23 | 1 | -8/+6 |
| | | |||||
| * | response: Add Conn and TLS methods | Adnan Maolood | 2021-02-23 | 1 | -0/+1 |
| | | |||||
| * | client: Move context handling to do | Adnan Maolood | 2021-02-23 | 1 | -17/+17 |
| | | |||||
| * | client: Cancel context on IO errors | Adnan Maolood | 2021-02-23 | 1 | -4/+72 |
| | | | | | Also close the connection when the context expires. | ||||
| * | response: Remove TLS field | Adnan Maolood | 2021-02-23 | 1 | -6/+0 |
| | | |||||
| * | client: Use present tense in documentation | Adnan Maolood | 2021-02-23 | 1 | -2/+2 |
| | | |||||
| * | client: Document use of contexts | Adnan Maolood | 2021-02-22 | 1 | -2/+5 |
| | | |||||
| * | client: Remove Timeout | Adnan Maolood | 2021-02-21 | 1 | -17/+1 |
| | | | | | Clients should use context.WithTimeout instead. | ||||
| * | Move punycode functions to client.go | Adnan Maolood | 2021-02-21 | 1 | -0/+23 |
| | | |||||
| * | client: Copy only what is needed from the Request | Adnan Maolood | 2021-02-21 | 1 | -9/+10 |
| | | |||||
| * | Add ErrCertificateExpired | Adnan Maolood | 2021-02-21 | 1 | -2/+1 |
| | | |||||
| * | client: Inline result type | Adnan Maolood | 2021-02-21 | 1 | -10/+11 |
| | | |||||
| * | client: Make Get and Do accept a Context | Adnan Maolood | 2021-02-20 | 1 | -77/+90 |
| | | | | | This removes the need for Request.Context. | ||||
| * | client: Allow Request.Host to omit a port | Adnan Maolood | 2021-02-20 | 1 | -2/+3 |
| | | |||||
| * | request.Write: Accept an io.Writer | Adnan Maolood | 2021-02-18 | 1 | -4/+1 |
| | | |||||
| * | client: Remove superfluous call to Flush | Adnan Maolood | 2021-02-18 | 1 | -4/+0 |
| | | |||||
| * | client: Don't try to verify unicode hostnamev0.1.14 | Adnan Maolood | 2021-02-16 | 1 | -4/+2 |
| | | |||||
| * | Make Request.Host optional | Adnan Maolood | 2021-02-14 | 1 | -14/+28 |
| | | |||||
| * | Update Client documentation | Adnan Maolood | 2021-02-14 | 1 | -2/+19 |
| | | |||||
| * | Update documentation | Adnan Maolood | 2021-02-14 | 1 | -2/+2 |
| | | |||||
| * | client: Punycode request URL | Adnan Maolood | 2021-02-09 | 1 | -1/+15 |
| | | |||||
| * | client: Support IDNs | Adnan Maolood | 2021-02-09 | 1 | -19/+18 |
| | | | | | Convert IDNs to punycode before performing DNS lookups. | ||||
| * | Make TLS field nil for unencrypted connections | Adnan Maolood | 2021-02-08 | 1 | -1/+2 |
| | | |||||
| * | tofu: Implement PersistentHosts | Adnan Maolood | 2021-01-25 | 1 | -6/+3 |
| | | |||||
| * | client: Add note about TOFU | Adnan Maolood | 2021-01-14 | 1 | -0/+3 |
| | | |||||
| * | fs: Update comments | Adnan Maolood | 2021-01-14 | 1 | -1/+0 |
| | | |||||
| * | client: set the client timout on the dialer, close connection on err | Hugo Wetterberg | 2021-01-13 | 1 | -5/+28 |
| | | | | | | | | | | | Client.Timout isn't respected for the dial. Requests will hang on dial until OS-level timouts kick in unless there is a Request.Context with a deadline. We also fail to close the connection on errors. This change sets the client timeout as the dialer timeout so that it will be respected. It also ensures that we close the connection if we fail to make the request. | ||||
| * | Add missing error handling | Hugo Wetterberg | 2021-01-09 | 1 | -2/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Error handling is currently missing is a couple of places. Most of them are i/o related. This change adds checks, an therefore sometimes also has to change function signatures by adding an error return value. In the case of the response writer the status and meta handling is changed and this also breaks the API. In some places where we don't have any reasonable I've added assignment to a blank identifier to make it clear that we're ignoring an error. text: read the Err() that can be set by the scanner. client: check if conn.SetDeadline() returns an error. client: check if req.Write() returns an error. fs: panic if mime type registration fails. server: stop performing i/o in Header/Status functions By deferring the actual header write to the first Write() or Flush() call we don't have to do any error handling in Header() or Status(). As Server.respond() now defers a ResponseWriter.Flush() instead of directly flushing the underlying bufio.Writer this has the added benefit of ensuring that we always write a header to the client, even if the responder is a complete NOOP. tofu: return an error if we fail to write to the known hosts writer. | ||||
| * | client: Verify expiration time | Adnan Maolood | 2020-12-19 | 1 | -0/+5 |
| | | |||||
| * | Add ReadRequest and ReadResponse functions | Adnan Maolood | 2020-12-18 | 1 | -2/+2 |
| | | |||||
| * | Expose Request.Write and Response.Read functions | Adnan Maolood | 2020-12-18 | 1 | -2/+2 |
| | | |||||
| * | Remove unnecessary variable | Adnan Maolood | 2020-12-18 | 1 | -2/+2 |
| | | |||||
| * | Remove Response.Request field | Adnan Maolood | 2020-12-18 | 1 | -1/+0 |
| | | |||||
| * | client: Remove GetInput and CheckRedirect callbacks | Adnan Maolood | 2020-12-18 | 1 | -52/+1 |
| | | |||||
| * | Update switch statement | Adnan Maolood | 2020-12-17 | 1 | -3/+3 |
| | | |||||
| * | client: Remove GetCertificate callback | Adnan Maolood | 2020-12-17 | 1 | -25/+0 |
| | | |||||
| * | Update GetCertificate documentation | Adnan Maolood | 2020-12-17 | 1 | -1/+3 |
| | | |||||
| * | Decouple Client from KnownHostsFile | Adnan Maolood | 2020-12-17 | 1 | -84/+48 |
| | | |||||
| * | Allow Request.Context to be nil | Adnan Maolood | 2020-12-17 | 1 | -1/+7 |
| | | |||||
| * | client: Add GetCertificate callback | Adnan Maolood | 2020-12-17 | 1 | -46/+9 |
| | | |||||
| * | Revert to using hexadecimal to encode fingerprintsv0.1.9 | Adnan Maolood | 2020-12-16 | 1 | -2/+1 |
| | | |||||
| * | Fix escaping of queries | Adnan Maolood | 2020-11-27 | 1 | -1/+1 |
| | | |||||