Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1ac06a55b992
Choose a base ref
...
head repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a390424dbe12
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jun 8, 2016

  1. Include HTTP:: in docs for server handlers

    I tried using some of the code from the docs and couldn't figure out why those handlers weren't loaded. I then realized the docs were missing the `HTTP::` namespace. This PR adds the correct namespace.
    paulcsmith committed Jun 8, 2016
    Copy the full SHA
    936837f View commit details
  2. Merge pull request #2780 from paulcsmith/patch-1

    Include `HTTP::` in docs for server handlers
    jhass committed Jun 8, 2016
    Copy the full SHA
    a390424 View commit details
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/http/server/server.cr
14 changes: 7 additions & 7 deletions src/http/server/server.cr
Original file line number Diff line number Diff line change
@@ -61,11 +61,11 @@ require "../common"
# ```
# require "http/server"
#
# Server.new("127.0.0.1", 8080, [
# ErrorHandler.new,
# LogHandler.new,
# DeflateHandler.new,
# StaticFileHandler.new("."),
# HTTP::Server.new("127.0.0.1", 8080, [
# HTTP::ErrorHandler.new,
# HTTP::LogHandler.new,
# HTTP::DeflateHandler.new,
# HTTP::StaticFileHandler.new("."),
# ]).listen
# ```
#
@@ -78,8 +78,8 @@ require "../common"
#
# server = HTTP::Server.new("0.0.0.0", 8080,
# [
# ErrorHandler.new,
# LogHandler.new,
# HTTP::ErrorHandler.new,
# HTTP::LogHandler.new,
# ]) do |context|
# context.response.content_type = "text/plain"
# context.response.print "Hello world!"