class GitHubRequest extends AnyRef
Handles a GitHubRequest.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- GitHubRequest
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
- val ACCEPT_HEADER: (String, String)
-
def
buildRequest(): HttpRequest
Build an URL using predefined headers.
Build an URL using predefined headers.
- returns
the HttpRequest
-
def
handleErrorCodes(response: GitHubResponse): GitHubResponse
Handle error codes.
Handle error codes. Forwards only 200 and 304 status codes, otherwise it throws and exception.
- response
the GitHub response to handle.
-
def
parseResponse(response: HttpResponse[String]): GitHubResponse
Parses the HttpResponse into a GitHubResponse.
Parses the HttpResponse into a GitHubResponse.
- response
the HttpResponse to parse.
- returns
a GitHubResponse.
-
def
request(): GitHubResponse
Request the data and parse the response.
Request the data and parse the response.
- returns
a GitHubResponse object.
- def retrieveResponse(request: HttpRequest, timeoutCap: Int = 32): HttpResponse[String]