From 2ee3386d8657d16da3816ae05083f1a1f26153bc Mon Sep 17 00:00:00 2001 From: Daniel Martin Date: Tue, 14 Feb 2017 08:57:16 +0100 Subject: [PATCH] Tweak docs/comments --- burp-dradis.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/burp-dradis.rb b/burp-dradis.rb index 350653d..d7a6db9 100755 --- a/burp-dradis.rb +++ b/burp-dradis.rb @@ -383,13 +383,14 @@ def build_config_panel container end - # Internal: builds a Thread object that makes an HTTP request using the Burp API + # Internal: builds a an HTTP POST request with headers containing + # authentication and payload. # - # endpoint - The configured Dradis endpoint - # token - The configured Dradis API token + # uri - The URI that we'll use to build the request's Host and path. + # token - The configured Dradis API token (Pro) or shared password (CE). # payload - The HTTP request body to be sent # - # Returns a Thread object + # Returns a string containing a valid HTTP POST require request. # def build_http_request(uri, token, payload) host = uri.host @@ -555,8 +556,10 @@ def send_to_dradis_menu_handler(invocation) # Internal: Open a Java thread and send the request through the wire using - # Burp's standard API for http messaging. + # Burp's standard API for http messaging. We need a thread because Burp + # doesn't like in-line requests that could freeze the UI. # + # uri - An URI object so we know where to send the request to # request - The HTTP request message we want to send to the server. # # Returns nothing.