aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-05 01:48:41 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-05 01:48:41 +0100
commit51fcbdc964a061fe6fa27b9f9096811b8abb7c76 (patch)
tree2b01648bba3c0f4f39bbf140bf7f44e252b6fb67 /client.go
parent3d1b66d287801c607e22cc2f4b6b617c3aa1f7ee (diff)
Add more comments
Diffstat (limited to 'client.go')
-rw-r--r--client.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/client.go b/client.go
index 27551ba..a394b66 100644
--- a/client.go
+++ b/client.go
@@ -53,10 +53,20 @@ func Get(s Signer, uri string, v interface{}) error {
}
// Important header fields
+//
// Replay-Nonce each response, required for next request
// Link links to next stage
// Retry-After pooling interval
+// Action Request Response
+//
+// Register POST new-reg 201 -> reg
+// Request challenges POST new-authz 201 -> authz
+// Answer challenges POST challenge 200
+// Poll for status GET authz 200
+// Request issuance POST new-cert 201 -> cert
+// Check for new cert GET cert 200
+
func Post(s Signer, uri string, v interface{}) (*http.Response, error) {
body, err := json.Marshal(v)
if err != nil {