request

package
v0.0.0-...-0ba3bd2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2015 License: Apache-2.0 Imports: 5 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SessionDisplayLength = 8

Functions

func FormValueSet

func FormValueSet(s string) map[string]bool

"openid email" みたいな文字列を {"openid": true, "email": true} みたいな集合にする。

func FormValues

func FormValues(s string) []string

"openid email" みたいな文字列を {"openid", "email"} みたいな配列にする。

func ValueSetForm

func ValueSetForm(m map[string]bool) string

{"openid": true, "email": true} みたいな集合を "openid email" みたいな文字列にする

func ValuesForm

func ValuesForm(a []string) string

{"openid", "email"} みたいな配列を "openid email" みたいな文字列にする

Types

type Request

type Request struct {
	// contains filtered or unexported fields
}

リクエストの基本情報。

func Parse

func Parse(r *http.Request, sessLabel string) *Request

func (*Request) Session

func (this *Request) Session() string

Cookie で宣言されているセッション ID を返す。

func (*Request) Source

func (this *Request) Source() string

送信元の IP アドレスを返す。

func (*Request) String

func (this *Request) String() string

<セッション ID の最初の数文字>@<IP アドレス>

Jump to

Keyboard shortcuts

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