3.0.2 • Published 4 years ago

requrl v3.0.2

Weekly downloads
18,935
License
MIT
Repository
github
Last release
4 years ago

requrl

npm dt bundlephobia

Grab full URL from request.

Features

  • Universal (browser and node.js) support
  • Detect HTTPS requests using is-https
  • Support x-forwarded-proto and x-forwarded-host
  • Always encode URI
  • Super Small

Usage

import getURL from 'requrl'
// OR
const getURL = require('requrl')

Function signuture is:

function getURL(req?: IncomingMessage, includePath?: boolean): string

Example:

const url = getURL(req)
// http://localhost:3000
// https://www.foo.com

License

MIT

@nuxtjs-alt/authauth-next-gd@infinitebrahmanuniverse/nolb-requrnuxt3-custom-auth@everything-registry/sub-chunk-2655@dommidev10/nuxt-auth@do4mother/nuxtjs-auth@draftbot/nuxtjs-auth@rowboat/nuxt-imagejthawme-nuxt-image@dennishellernokia/nuxt-authstephanjohnson-nuxt-authunkit@arindambiswas1/nuxt-auth-custom@alejeune/auth-next@badaso/nuxt@bimdata/nuxt-auth@bitpod/auth-next@bitpod/auth-nuxt@bitpod/auth-nuxt-custom@bgscp/nuxt-auth@codetheorist/nuxt-auth@brandboostinggmbh/image@felix98765/authey@fogine/nuxtjs-auth-next@eloqjs/nuxt-next-auth@kylesmith0905/sidebase__nuxt-auth@lucasroll62/nuxt2-auth-module@lucasroll62/nuxt3-auth@m-a-k-o/auth@luigdima/nuxtjs-strapi@maprox/nuxt-image@netsells/nuxt-auth-module@nik7212/nuxt2-auth-module@minlia/nuxtjs-auth@mitto98/nuxt-auth-tmp@jeroendekker82/nuxt-image@noomz/auth@privyid/nuauth@safematrix-auth/nuxt-auth@salesqueze/sdk@proply/strapi@privyid/nugrpc-api-nuxt@reapermaga/nuxt-auth-fix@plenexy/nuxt-sanctum@nuxtjs/auth-next@nuxt-alt/auth@somefix/nuxtjs-auth@sidebase/nuxt-authmoveton.authmnt-nuxt-authnuxtjs_auth-geeknuxt-statamicnuxt-aclnuxt-seo-metanuxt2-strapi4nuxtjs-multi-authnuxtjs-authnuxtjs-custom-authnuxtjs-strapi-refresh-tokennuxt-auth-wensaintnuxt-auth-forksidebase-auth-refreshsidebase-auth-refresh-modifiedh3-basic-authlocaldev-tui@wirlax/auth@unergy-dev/fork-next@teamnovu/nuxt-image@toyopilgrim/nuxt-alt-auth@vijayabhaskar96/nuxt-auth@yashx/nuxt-auth-popup@symbol-it/nuxt-strapi-axiosauth-nuxtauthy-nuxtauthy-nuxt3-testautheyauthey-testezpassezpass-temp
3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.3.21

9 years ago