Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

net-http-sspi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

net-http-sspi

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Win32::SSPI

win32-sspi implements bindings to Win32 SSPI functions, focused on authentication to a proxy server over HTTP.

Installation

win32-sspi is a bundled gem of the ruby standard library, so that the latest version on the ruby release date is preinstalled on Windows. Other versions of the gem can be installed in addition like so:

Install the gem and add to the application's Gemfile by executing:

$ bundle add win32-sspi

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install win32-sspi

Usage

require "net/http"

proxy_arguments = [proxy_server,] # ...
http = Net::HTTP.new(hostname, nil, *proxy_arguments)
http.instance_variable_set(:@sspi_enabled, true)

req = Net::HTTP::Get.new('/todos/1')
http.request(req)

See Proxy Server in Net::HTTP for proxy arguments.

Development

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub.

FAQs

Package last updated on 09 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc