Documentation ¶
Overview ¶
Package rawhttp implements conveniences related with HTTP request/reply operations.
-- * * Copyright (C) 2015 by Rafael Santiago * * This is a free software. You can redistribute it and/or modify under * the terms of the GNU General Public License version 2. *
Index ¶
- func GetFieldsFromGet(buffer string) map[string]string
- func GetFieldsFromPost(buffer string) map[string]string
- func GetHTTPFieldFromBuffer(field, buffer string) string
- func MakeReplyBuffer(buffer string, statusCode int, closeConnection bool) []byte
- func MakeReplyBufferByFilePath(filePath string, statusCode int, closeConnection bool) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFieldsFromGet ¶
GetFieldsFromGet returns a map containing all fields in a HTTP get.
func GetFieldsFromPost ¶
GetFieldsFromPost returns a map containing all fields in a HTTP post.
func GetHTTPFieldFromBuffer ¶
GetHTTPFieldFromBuffer returns data carried by some HTTP field inside a HTTP request.
func MakeReplyBuffer ¶
MakeReplyBuffer assembles the reply buffer based on the statusCode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.