Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Rest client middleware with unit tests #73

Merged

Conversation

danielharasymiw-wf
Copy link
Contributor

@danielharasymiw-wf danielharasymiw-wf commented Jul 26, 2016

@aviary2-wf
Copy link

Raven

Number of Findings: 0

@@ -33,10 +34,45 @@ const (
httpPut = "PUT"
)

type InvocationHandler func(c *http.Client, method, url string, body interface{}, header http.Header) (*Response, error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docstring

@tylertreat-wf
Copy link
Contributor

Could use some docstrings but otherwise lgtm.

@@ -34,10 +34,13 @@ const (
httpPut = "PUT"
)

// The type that is the function that is to be wrapped by the ClientMiddleware
type InvocationHandler func(c *http.Client, method, url string, body interface{}, header http.Header) (*Response, error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nit, but Go docstrings should start with the name of the type/function/struct/etc. https://blog.golang.org/godoc-documenting-go-code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the link, I've updated the docstrings and will try and keep it in mind for future use.

@joestrach-wf
Copy link

+1 looks great

@beaulyddon-wf
Copy link
Contributor

+1

1 similar comment
@tylertreat-wf
Copy link
Contributor

+1

@tylertreat-wf tylertreat-wf merged commit 6d6bf2e into Workiva:master Aug 2, 2016
@teresarevious-wf
Copy link

RM +1

verified dependencies manually

@rmconsole-wf
Copy link

QA review can be found here: https://jira.atl.workiva.net/browse/RM-16257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants