module Octokit::Configurable

Overview

Provides configuration options for Client.

Direct including types

Defined in:

octokit/configurable.cr

Instance Method Summary

Instance Method Detail

def access_token #

Get access token for authentication.


[View source]
def access_token=(token) #

Set access token for authentication.


[View source]
def add_middleware(middleware : Halite::Feature) #

Add middleware to the middleware stack.


[View source]
def api_endpoint #

API endpoint for Client.


[View source]
def api_endpoint=(val) #

Set the api endpoint.


[View source]
def auto_paginate #

Do we want to auto paginate.


[View source]
def auto_paginate=(val) #

Set if we want to auto paginate.


[View source]
def bearer_token #

Get the bearer token.


[View source]
def bearer_token=(token) #

Set the bearer token.


[View source]
def client_id #

Get the Client ID.


[View source]
def client_id=(val) #

Set the Client ID.


[View source]
def client_secret #

Get the Client Secret.


[View source]
def client_secret=(val) #

Set the Client secret.


[View source]
def configure(&) #

Yield a block allowing configuration of options.

Example:

@client.configure do
  auto_paginate = true
end

[View source]
def connection_options #

Get the default connection options passed to Halite.


[View source]
def connection_options=(val) #

Set the default connection options passed to Halite.


[View source]
def default_media_type #

Get the default media type for headers.


[View source]
def default_media_type=(val) #

Set the default media type for headers.


[View source]
def logger #

Get the configured logger instance.


[View source]
def logger=(val) #

Set a configured logger instance.


[View source]
def login #

The username of the authenticated user


[View source]
def login=(val) #

Set the user login.


[View source]
def management_console_endpoint #

API endpoint for EnterpriseManagementConsoleClient


[View source]
def management_console_endpoint=(val) #

Set the management console password.


[View source]
def middleware #

Get the middleware stack for Halite.


[View source]
def middleware=(val) #

Set the middleware stack for Halite.


[View source]
def password=(val) #

Set the user password.


[View source]
def per_page #

Get the maximum results returned per page for paginated endpoints.


[View source]
def per_page=(val) #

Set the maximum results returned per page for paginated endpoints.


[View source]
def proxy #

Get the proxy to use when connecting. Note: Crystal's HTTP::Client and by extension Halite do not yet support proxy's. Therefore this option does nothing for now.


[View source]
def proxy=(val) #

Set the proxy to use when connecting. Note: Crystal's HTTP::Client and by extension Halite do not yet support proxy's. Therefore this option does nothing for now.


[View source]
def reset! #

[View source]
def ssl_verify_mode #

Get the OpenSSL verify mode to use for SSL connections. 0 is OpenSSL::SSL::NONE 1 is OpenSSL::SSL::PEER


[View source]
def ssl_verify_mode=(mode) #

Set the OpenSSL verify mode to use for SSL connections. 0 is OpenSSL::SSL::NONE 1 is OpenSSL::SSL::PEER


[View source]
def user_agent #

Get the User Agent header to be passed to all requests.


[View source]
def user_agent=(val) #

Set the User Agent header to be passed to all requests.


[View source]
def web_endpoint #

Base URL for generated web URLs


[View source]
def web_endpoint=(val) #

Set the web endpoint.


[View source]