
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
An opinionated HTTP Client library using convention over configuration.
Uses
By convention the following metrics are measured and logged: *
PersistentHTTP with the following enhancements:
secret_config_path
.Create a new Opinionated HTTP instance.
Parameters:
secret_config_prefix:
Required
metric_prefix:
Required
error_class:
Whenever exceptions are raised it is important that every client gets its own exception / error class
so that failures to specific http servers can be easily identified.
Required.
logger:
Default: SemanticLogger[OpinionatedHTTP]
format: [:json | nil]
Optionally set the format for http requests.
Currently only supports :json
, which will format the request and response to/from JSON.
It will also set the Content-Type
http header to application/json
.
Other options as supported by PersistentHTTP
#TODO: Expand PersistentHTTP options here
Configuration:
Off of the secret_config_path
path above, Opinionated HTTP uses specific configuration entry names
to configure the underlying HTTP setup:
url: [String]
The host url to the site to connect to.
Exclude any path, since that will be supplied when #get
or #post
is called.
Required.
Examples:
"https://example.com"
"https://example.com:8443/"
pool_size: [Integer]
default: 100
open_timeout: [Float]
default: 10
read_timeout: [Float]
default: 10
idle_timeout: [Float]
default: 300
keep_alive: [Float]
default: 300
pool_timeout: [Float]
default: 5
warn_timeout: [Float]
default: 0.25
proxy: [Symbol]
default: :ENV
force_retry: [true|false]
default: true
Metrics:
During each call to #get
or #put
, the following metrics are logged using the
FAQs
Unknown package
We found that opinionated_http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.