xhttp

package
v0.0.0-...-ed9fe1d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package xhttp provies utility functions for net/http package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteURL

func AbsoluteURL(req *http.Request, path string) string

AbsoluteURL returns an absolute url from path

func SignCookie

func SignCookie(c *http.Cookie, hmac *xhmac.Base64) *http.Cookie

SignCookie returns a shallow copy of *http.Cookie with adding hmac signature on it's value.

func UnsignCookie

func UnsignCookie(cc *http.Cookie, hmac *xhmac.Base64) (*http.Cookie, error)

UnsignCookie returns a shallow copy of *http.Cookie with validating hmac signature on it's value.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL